before_actions 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -15
- data/lib/before_actions/controller/scope.rb +1 -1
- data/lib/before_actions/version.rb +1 -1
- data/spec/controllers/squirrel_controller_spec.rb +3 -3
- data/spec/dummy/log/test.log +551 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 774b07d25af56aaae210d46a6e8dfcae04345c29
|
4
|
+
data.tar.gz: b8066161e574200f0ce5e38d94bc71be77314414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce8f5e21b20470c17b72d8d24fe847774e331e1d00cf46b907eddfde84bc50c5adbde515f3e02ff39725118258e1211c10d1ea117b3331ab4d1fdbcf05a32edd
|
7
|
+
data.tar.gz: f390e5db581e4fafc714f2e173b7b89e491f27ad1b9857d3a20424c1bd5d0f0f915b034c6ecd73926b10e4a280b0b5048e265c753514e851e8993eff74a15bab
|
data/README.md
CHANGED
@@ -38,37 +38,52 @@ And then execute:
|
|
38
38
|
|
39
39
|
```bash
|
40
40
|
bundle
|
41
|
-
rails g before_actions:
|
41
|
+
rails g before_actions:template
|
42
42
|
```
|
43
43
|
|
44
44
|
|
45
|
+
## Upgrading from 1.*
|
45
46
|
|
47
|
+
```bash
|
48
|
+
bundle update before_actions
|
49
|
+
rails g before_actions:template
|
50
|
+
```
|
51
|
+
|
52
|
+
Then simply adjust your controllers to the new syntax
|
46
53
|
|
47
54
|
|
48
55
|
## Demo
|
49
56
|
|
50
|
-
|
57
|
+
It's simple!
|
51
58
|
|
52
59
|
```ruby
|
53
60
|
class ContactsController < ApplicationController
|
54
61
|
|
55
62
|
# load and authorize resources
|
56
63
|
before_actions do
|
57
|
-
#
|
58
|
-
|
59
|
-
|
60
|
-
# list actions
|
61
|
-
actions(:index) { @contacts = Contact.all }
|
64
|
+
# listing actions
|
65
|
+
only(:index) { @contacts = Contact.all }
|
62
66
|
|
63
67
|
# building actions
|
64
|
-
|
65
|
-
|
68
|
+
only(:new) { @contact = Contact.new }
|
69
|
+
only(:create) { @contact = Contact.new(contact_params) }
|
66
70
|
|
67
71
|
# member actions, will raise a 404 if the model is not found
|
68
|
-
|
72
|
+
only(:show, :edit, :update, :destroy) { @contact = Contact.find(params[:id]) }
|
73
|
+
end
|
74
|
+
|
75
|
+
after_actions do
|
76
|
+
all { your_code_here }
|
77
|
+
except(:index) { your_code_here }
|
78
|
+
end
|
79
|
+
|
69
80
|
|
70
|
-
|
71
|
-
|
81
|
+
around_actions do
|
82
|
+
only(:create) do |controller, action|
|
83
|
+
your_code
|
84
|
+
action.call
|
85
|
+
in_here
|
86
|
+
end
|
72
87
|
end
|
73
88
|
|
74
89
|
...
|
@@ -79,11 +94,11 @@ class ContactsController < ApplicationController
|
|
79
94
|
end
|
80
95
|
```
|
81
96
|
|
82
|
-
####
|
97
|
+
#### Restful Controller
|
83
98
|
|
84
|
-
<img src="readme_images/
|
99
|
+
<img src="readme_images/resource.png" alt="resource.png" />
|
85
100
|
|
86
|
-
####
|
101
|
+
#### Nested Resourceful Controller
|
87
102
|
|
88
103
|
<img src="readme_images/nested.png" alt="nested.png" />
|
89
104
|
|
@@ -6,7 +6,7 @@ RSpec.describe SquirrelController, :type => :controller do
|
|
6
6
|
it "returns http success" do
|
7
7
|
get :one
|
8
8
|
expect(response).to have_http_status(:success)
|
9
|
-
expect(assigns(:squirrel)).to eq("
|
9
|
+
expect(assigns(:squirrel)).to eq("one")
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -14,7 +14,7 @@ RSpec.describe SquirrelController, :type => :controller do
|
|
14
14
|
it "returns http success" do
|
15
15
|
get :two
|
16
16
|
expect(response).to have_http_status(:success)
|
17
|
-
expect(assigns(:squirrel)).to eq("
|
17
|
+
expect(assigns(:squirrel)).to eq("except before one")
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -22,7 +22,7 @@ RSpec.describe SquirrelController, :type => :controller do
|
|
22
22
|
it "returns http success" do
|
23
23
|
get :three
|
24
24
|
expect(response).to have_http_status(:success)
|
25
|
-
expect(assigns(:squirrel)).to eq("
|
25
|
+
expect(assigns(:squirrel)).to eq("except before one")
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -4555,3 +4555,554 @@ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
|
4555
4555
|
Processing by SquirrelController#three as HTML
|
4556
4556
|
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
|
4557
4557
|
[1m[35m (0.1ms)[0m rollback transaction
|
4558
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4559
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4560
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4561
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.326942"], ["updated_at", "2014-09-12 22:50:00.326942"]]
|
4562
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4563
|
+
Processing by AdminFoosController#index as HTML
|
4564
|
+
Rendered admin_foos/index.html.erb within layouts/application (0.5ms)
|
4565
|
+
Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.0ms)
|
4566
|
+
[1m[35mAdminFoo Load (0.2ms)[0m SELECT "admin_foos".* FROM "admin_foos"
|
4567
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
4568
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4569
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4570
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.354403"], ["updated_at", "2014-09-12 22:50:00.354403"]]
|
4571
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4572
|
+
Processing by AdminFoosController#show as HTML
|
4573
|
+
Parameters: {"id"=>"1"}
|
4574
|
+
[1m[35mAdminFoo Load (0.2ms)[0m SELECT "admin_foos".* FROM "admin_foos" WHERE "admin_foos"."id" = ? LIMIT 1 [["id", 1]]
|
4575
|
+
Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
4576
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
4577
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4578
|
+
Processing by AdminFoosController#new as HTML
|
4579
|
+
Filter chain halted as #<Proc:0x007f9d0d5eda10@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4580
|
+
Completed 401 Unauthorized in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
|
4581
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
4582
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4583
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4584
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.372607"], ["updated_at", "2014-09-12 22:50:00.372607"]]
|
4585
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4586
|
+
Processing by AdminFoosController#edit as HTML
|
4587
|
+
Parameters: {"id"=>"1"}
|
4588
|
+
Filter chain halted as #<Proc:0x007f9d0d5eda10@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4589
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
4590
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
4591
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4592
|
+
Processing by AdminFoosController#create as HTML
|
4593
|
+
Parameters: {"admin_foo"=>{"bar"=>"cool"}}
|
4594
|
+
Filter chain halted as #<Proc:0x007f9d0d5eda10@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4595
|
+
Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
4596
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4597
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4598
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4599
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.380902"], ["updated_at", "2014-09-12 22:50:00.380902"]]
|
4600
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4601
|
+
Processing by AdminFoosController#update as HTML
|
4602
|
+
Parameters: {"admin_foo"=>{"bar"=>"cool"}, "id"=>"1"}
|
4603
|
+
Filter chain halted as #<Proc:0x007f9d0d5eda10@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4604
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
4605
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
4606
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4607
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4608
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.385625"], ["updated_at", "2014-09-12 22:50:00.385625"]]
|
4609
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4610
|
+
Processing by AdminFoosController#destroy as HTML
|
4611
|
+
Parameters: {"id"=>"1"}
|
4612
|
+
Filter chain halted as #<Proc:0x007f9d0d5eda10@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4613
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
4614
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
4615
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4616
|
+
Processing by BunnyController#one as HTML
|
4617
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
4618
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4620
|
+
Processing by BunnyController#two as HTML
|
4621
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
|
4622
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4624
|
+
Processing by BunnyController#three as HTML
|
4625
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4626
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4627
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4628
|
+
Processing by CatController#one as HTML
|
4629
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
|
4630
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4632
|
+
Processing by CatController#two as HTML
|
4633
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4634
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4635
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4636
|
+
Processing by CatController#three as HTML
|
4637
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
|
4638
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4639
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4640
|
+
Processing by DogController#one as HTML
|
4641
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
4642
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4643
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4644
|
+
Processing by DogController#two as HTML
|
4645
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
4646
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4647
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4648
|
+
Processing by DogController#three as HTML
|
4649
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
4650
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4651
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4652
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4653
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.445295"], ["updated_at", "2014-09-12 22:50:00.445295"]]
|
4654
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4655
|
+
Processing by FoosController#index as HTML
|
4656
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
4657
|
+
[1m[36mFoo Load (0.5ms)[0m [1mSELECT "foos".* FROM "foos"[0m
|
4658
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
4659
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4660
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4661
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.463945"], ["updated_at", "2014-09-12 22:50:00.463945"]]
|
4662
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4663
|
+
Processing by FoosController#show as HTML
|
4664
|
+
Parameters: {"id"=>"1"}
|
4665
|
+
[1m[36mFoo Load (0.4ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4666
|
+
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
|
4667
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
4668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4669
|
+
Processing by FoosController#new as HTML
|
4670
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
|
4671
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4672
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4673
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4674
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.480737"], ["updated_at", "2014-09-12 22:50:00.480737"]]
|
4675
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4676
|
+
Processing by FoosController#edit as HTML
|
4677
|
+
Parameters: {"id"=>"1"}
|
4678
|
+
[1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4679
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
4680
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4682
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "foos"
|
4683
|
+
Processing by FoosController#create as HTML
|
4684
|
+
Parameters: {"foo"=>{"bar"=>"cool"}}
|
4685
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4686
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.497397"], ["updated_at", "2014-09-12 22:50:00.497397"]]
|
4687
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4688
|
+
Redirected to http://test.host/foos/1
|
4689
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
4690
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "foos"
|
4691
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
4692
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4693
|
+
Processing by FoosController#create as HTML
|
4694
|
+
Parameters: {"foo"=>{"bar"=>"cool"}}
|
4695
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4696
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.505964"], ["updated_at", "2014-09-12 22:50:00.505964"]]
|
4697
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4698
|
+
Redirected to http://test.host/foos/1
|
4699
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
4700
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
4701
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4702
|
+
Processing by FoosController#create as HTML
|
4703
|
+
Parameters: {"foo"=>{"bar"=>"cool"}}
|
4704
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4705
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.532293"], ["updated_at", "2014-09-12 22:50:00.532293"]]
|
4706
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4707
|
+
Redirected to http://test.host/foos/1
|
4708
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
4709
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" ORDER BY "foos"."id" DESC LIMIT 1[0m
|
4710
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4711
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4712
|
+
Processing by FoosController#create as HTML
|
4713
|
+
Parameters: {"foo"=>{"bar"=>""}}
|
4714
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4715
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4716
|
+
Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 0.2ms)
|
4717
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4719
|
+
Processing by FoosController#create as HTML
|
4720
|
+
Parameters: {"foo"=>{"bar"=>""}}
|
4721
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4722
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4723
|
+
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
|
4724
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4725
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4726
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4727
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.563311"], ["updated_at", "2014-09-12 22:50:00.563311"]]
|
4728
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4729
|
+
Processing by FoosController#update as HTML
|
4730
|
+
Parameters: {"foo"=>{"bar"=>"yay"}, "id"=>"1"}
|
4731
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4732
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4733
|
+
[1m[36mSQL (2.0ms)[0m [1mUPDATE "foos" SET "bar" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar", "yay"], ["updated_at", "2014-09-12 22:50:00.567496"]]
|
4734
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4735
|
+
Redirected to http://test.host/foos/1
|
4736
|
+
Completed 302 Found in 6ms (ActiveRecord: 2.2ms)
|
4737
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4738
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
4739
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4740
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4741
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.575605"], ["updated_at", "2014-09-12 22:50:00.575605"]]
|
4742
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4743
|
+
Processing by FoosController#update as HTML
|
4744
|
+
Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
|
4745
|
+
[1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4747
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4748
|
+
Redirected to http://test.host/foos/1
|
4749
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
4750
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4751
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4752
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4753
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.582102"], ["updated_at", "2014-09-12 22:50:00.582102"]]
|
4754
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4755
|
+
Processing by FoosController#update as HTML
|
4756
|
+
Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
|
4757
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4759
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4760
|
+
Redirected to http://test.host/foos/1
|
4761
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
4762
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4763
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4764
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4765
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.592024"], ["updated_at", "2014-09-12 22:50:00.592024"]]
|
4766
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4767
|
+
Processing by FoosController#update as HTML
|
4768
|
+
Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
|
4769
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4770
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4771
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4772
|
+
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms)
|
4773
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4775
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4776
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.599916"], ["updated_at", "2014-09-12 22:50:00.599916"]]
|
4777
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4778
|
+
Processing by FoosController#update as HTML
|
4779
|
+
Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
|
4780
|
+
[1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4781
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4782
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4783
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
4784
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4785
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4786
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4787
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.608519"], ["updated_at", "2014-09-12 22:50:00.608519"]]
|
4788
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4789
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "foos"[0m
|
4790
|
+
Processing by FoosController#destroy as HTML
|
4791
|
+
Parameters: {"id"=>"1"}
|
4792
|
+
[1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
|
4793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4794
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
|
4795
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4796
|
+
Redirected to http://test.host/foos
|
4797
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
|
4798
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "foos"
|
4799
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
4800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4801
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4802
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.616617"], ["updated_at", "2014-09-12 22:50:00.616617"]]
|
4803
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4804
|
+
Processing by FoosController#destroy as HTML
|
4805
|
+
Parameters: {"id"=>"1"}
|
4806
|
+
[1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
|
4807
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4808
|
+
[1m[35mSQL (0.8ms)[0m DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
|
4809
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4810
|
+
Redirected to http://test.host/foos
|
4811
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
|
4812
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4813
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4814
|
+
Processing by SquirrelController#one as HTML
|
4815
|
+
Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
4816
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4817
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4818
|
+
Processing by SquirrelController#two as HTML
|
4819
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
|
4820
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4821
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4822
|
+
Processing by SquirrelController#three as HTML
|
4823
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
4824
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4825
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "admin_foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4826
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime)
|
4827
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4828
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
4829
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4830
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4831
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140912042735')[0m
|
4832
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140912040816')
|
4833
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4834
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "admin_foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
4835
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime)
|
4836
|
+
[1m[36m (19.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
4837
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
4838
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4839
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
4840
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140912042735')[0m
|
4841
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140912040816')
|
4842
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4843
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4844
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4845
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.584688"], ["updated_at", "2014-09-12 22:52:06.584688"]]
|
4846
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4847
|
+
Processing by AdminFoosController#index as HTML
|
4848
|
+
Rendered admin_foos/index.html.erb within layouts/application (0.3ms)
|
4849
|
+
Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)
|
4850
|
+
[1m[35mAdminFoo Load (0.1ms)[0m SELECT "admin_foos".* FROM "admin_foos"
|
4851
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
4852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4853
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4854
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.608218"], ["updated_at", "2014-09-12 22:52:06.608218"]]
|
4855
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4856
|
+
Processing by AdminFoosController#show as HTML
|
4857
|
+
Parameters: {"id"=>"1"}
|
4858
|
+
[1m[35mAdminFoo Load (0.1ms)[0m SELECT "admin_foos".* FROM "admin_foos" WHERE "admin_foos"."id" = ? LIMIT 1 [["id", 1]]
|
4859
|
+
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.1ms)
|
4860
|
+
[1m[36m (6.9ms)[0m [1mrollback transaction[0m
|
4861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4862
|
+
Processing by AdminFoosController#new as HTML
|
4863
|
+
Filter chain halted as #<Proc:0x007f9c5eb629c8@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4864
|
+
Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
4865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4866
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4867
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4868
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.631304"], ["updated_at", "2014-09-12 22:52:06.631304"]]
|
4869
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4870
|
+
Processing by AdminFoosController#edit as HTML
|
4871
|
+
Parameters: {"id"=>"1"}
|
4872
|
+
Filter chain halted as #<Proc:0x007f9c5eb629c8@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4873
|
+
Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
4874
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4875
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4876
|
+
Processing by AdminFoosController#create as HTML
|
4877
|
+
Parameters: {"admin_foo"=>{"bar"=>"cool"}}
|
4878
|
+
Filter chain halted as #<Proc:0x007f9c5eb629c8@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4879
|
+
Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
4880
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4881
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4882
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4883
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.703333"], ["updated_at", "2014-09-12 22:52:06.703333"]]
|
4884
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4885
|
+
Processing by AdminFoosController#update as HTML
|
4886
|
+
Parameters: {"admin_foo"=>{"bar"=>"cool"}, "id"=>"1"}
|
4887
|
+
Filter chain halted as #<Proc:0x007f9c5eb629c8@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4888
|
+
Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
4889
|
+
[1m[36m (3.5ms)[0m [1mrollback transaction[0m
|
4890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4891
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4892
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.720473"], ["updated_at", "2014-09-12 22:52:06.720473"]]
|
4893
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4894
|
+
Processing by AdminFoosController#destroy as HTML
|
4895
|
+
Parameters: {"id"=>"1"}
|
4896
|
+
Filter chain halted as #<Proc:0x007f9c5eb629c8@/Users/tj/github/before-actions-gem/before_actions/spec/dummy/app/controllers/admin_foos_controller.rb:5> rendered or redirected
|
4897
|
+
Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
4898
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
4899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4900
|
+
Processing by BunnyController#one as HTML
|
4901
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
4902
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4903
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4904
|
+
Processing by BunnyController#two as HTML
|
4905
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
4906
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4907
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4908
|
+
Processing by BunnyController#three as HTML
|
4909
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
|
4910
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4911
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4912
|
+
Processing by CatController#one as HTML
|
4913
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
4914
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4915
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4916
|
+
Processing by CatController#two as HTML
|
4917
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
4918
|
+
[1m[35m (8.0ms)[0m rollback transaction
|
4919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4920
|
+
Processing by CatController#three as HTML
|
4921
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
4922
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4923
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4924
|
+
Processing by DogController#one as HTML
|
4925
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
|
4926
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4928
|
+
Processing by DogController#two as HTML
|
4929
|
+
Completed 200 OK in 15ms (Views: 15.0ms | ActiveRecord: 0.0ms)
|
4930
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4931
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4932
|
+
Processing by DogController#three as HTML
|
4933
|
+
Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
|
4934
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4935
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4936
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4937
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.834878"], ["updated_at", "2014-09-12 22:52:06.834878"]]
|
4938
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4939
|
+
Processing by FoosController#index as HTML
|
4940
|
+
Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.0ms)
|
4941
|
+
[1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos"[0m
|
4942
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
4943
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4944
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4945
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.858130"], ["updated_at", "2014-09-12 22:52:06.858130"]]
|
4946
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4947
|
+
Processing by FoosController#show as HTML
|
4948
|
+
Parameters: {"id"=>"1"}
|
4949
|
+
[1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4950
|
+
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
4951
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
4952
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4953
|
+
Processing by FoosController#new as HTML
|
4954
|
+
Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
|
4955
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4956
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4957
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4958
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.882648"], ["updated_at", "2014-09-12 22:52:06.882648"]]
|
4959
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4960
|
+
Processing by FoosController#edit as HTML
|
4961
|
+
Parameters: {"id"=>"1"}
|
4962
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
4963
|
+
Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.1ms)
|
4964
|
+
[1m[35m (12.6ms)[0m rollback transaction
|
4965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4966
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "foos"
|
4967
|
+
Processing by FoosController#create as HTML
|
4968
|
+
Parameters: {"foo"=>{"bar"=>"cool"}}
|
4969
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4970
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.923939"], ["updated_at", "2014-09-12 22:52:06.923939"]]
|
4971
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4972
|
+
Redirected to http://test.host/foos/1
|
4973
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
4974
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "foos"
|
4975
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
4976
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4977
|
+
Processing by FoosController#create as HTML
|
4978
|
+
Parameters: {"foo"=>{"bar"=>"cool"}}
|
4979
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4980
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.933319"], ["updated_at", "2014-09-12 22:52:06.933319"]]
|
4981
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4982
|
+
Redirected to http://test.host/foos/1
|
4983
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
4984
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
4985
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4986
|
+
Processing by FoosController#create as HTML
|
4987
|
+
Parameters: {"foo"=>{"bar"=>"cool"}}
|
4988
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4989
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.940635"], ["updated_at", "2014-09-12 22:52:06.940635"]]
|
4990
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4991
|
+
Redirected to http://test.host/foos/1
|
4992
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
4993
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" ORDER BY "foos"."id" DESC LIMIT 1[0m
|
4994
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4995
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4996
|
+
Processing by FoosController#create as HTML
|
4997
|
+
Parameters: {"foo"=>{"bar"=>""}}
|
4998
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4999
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5000
|
+
Completed 200 OK in 13ms (Views: 1.3ms | ActiveRecord: 0.2ms)
|
5001
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5002
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5003
|
+
Processing by FoosController#create as HTML
|
5004
|
+
Parameters: {"foo"=>{"bar"=>""}}
|
5005
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5006
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5007
|
+
Completed 200 OK in 7ms (Views: 1.3ms | ActiveRecord: 0.2ms)
|
5008
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5009
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5010
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5011
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.973284"], ["updated_at", "2014-09-12 22:52:06.973284"]]
|
5012
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5013
|
+
Processing by FoosController#update as HTML
|
5014
|
+
Parameters: {"foo"=>{"bar"=>"yay"}, "id"=>"1"}
|
5015
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
5016
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5017
|
+
[1m[36mSQL (1.4ms)[0m [1mUPDATE "foos" SET "bar" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar", "yay"], ["updated_at", "2014-09-12 22:52:06.976533"]]
|
5018
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5019
|
+
Redirected to http://test.host/foos/1
|
5020
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
|
5021
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
5022
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5023
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5024
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5025
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.982920"], ["updated_at", "2014-09-12 22:52:06.982920"]]
|
5026
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5027
|
+
Processing by FoosController#update as HTML
|
5028
|
+
Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
|
5029
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
5030
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5031
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5032
|
+
Redirected to http://test.host/foos/1
|
5033
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
5034
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5036
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5037
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.989645"], ["updated_at", "2014-09-12 22:52:06.989645"]]
|
5038
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5039
|
+
Processing by FoosController#update as HTML
|
5040
|
+
Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
|
5041
|
+
[1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
5042
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5043
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5044
|
+
Redirected to http://test.host/foos/1
|
5045
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
5046
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5047
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5048
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5049
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.997087"], ["updated_at", "2014-09-12 22:52:06.997087"]]
|
5050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5051
|
+
Processing by FoosController#update as HTML
|
5052
|
+
Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
|
5053
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
5054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5055
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5056
|
+
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms)
|
5057
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5058
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5059
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5060
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:07.004687"], ["updated_at", "2014-09-12 22:52:07.004687"]]
|
5061
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5062
|
+
Processing by FoosController#update as HTML
|
5063
|
+
Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
|
5064
|
+
[1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
|
5065
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5066
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5067
|
+
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms)
|
5068
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5069
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5070
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5071
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["bar", "cool"], ["created_at", "2014-09-12 22:52:07.017842"], ["updated_at", "2014-09-12 22:52:07.017842"]]
|
5072
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5073
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "foos"[0m
|
5074
|
+
Processing by FoosController#destroy as HTML
|
5075
|
+
Parameters: {"id"=>"1"}
|
5076
|
+
[1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
|
5077
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5078
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
|
5079
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5080
|
+
Redirected to http://test.host/foos
|
5081
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
|
5082
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "foos"
|
5083
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
5084
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5086
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:07.026628"], ["updated_at", "2014-09-12 22:52:07.026628"]]
|
5087
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5088
|
+
Processing by FoosController#destroy as HTML
|
5089
|
+
Parameters: {"id"=>"1"}
|
5090
|
+
[1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
|
5091
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5092
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
|
5093
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5094
|
+
Redirected to http://test.host/foos
|
5095
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
5096
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5097
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5098
|
+
Processing by SquirrelController#one as HTML
|
5099
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
5100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5102
|
+
Processing by SquirrelController#two as HTML
|
5103
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
5104
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5105
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
5106
|
+
Processing by SquirrelController#three as HTML
|
5107
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
5108
|
+
[1m[35m (0.2ms)[0m rollback transaction
|