before_actions 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dffdac8d3b55458fb7a23905f95cff7e62c30534
4
- data.tar.gz: 1848dd3ce8e5445d1bbfe6af7add735f3050a43f
3
+ metadata.gz: 774b07d25af56aaae210d46a6e8dfcae04345c29
4
+ data.tar.gz: b8066161e574200f0ce5e38d94bc71be77314414
5
5
  SHA512:
6
- metadata.gz: 2ab966b59a6dc148076c69c9597e3e89319e784b424e2a2a148b2acabe2966203a2bf2dffaef782d8d023b9e542f0cc767dd4f8e7ef0841a47e35977f85e6e99
7
- data.tar.gz: eb48d59bddbd307752b1ccad948391d017207c04b1f89a2f14fbf15df622318144538e841fd6135d2cbf572377a74946b6e7ec74730d5a42daec4ff84a0d7c0e
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:install
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
- Check this gem in use: [app/controllers/contacts_controller.rb](https://github.com/before-actions-gem/before_actions/blob/master/readme_images/contacts_controller.rb)
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
- # all actions
58
- # actions { }
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
- actions(:new) { @contact = Contact.new }
65
- actions(:create) { @contact = Contact.new(contact_params) }
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
- actions(:show, :edit, :update, :destroy) { @contact = Contact.find(params[:id]) }
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
- # all actions
71
- # actions { }
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
- #### Demo Resource
97
+ #### Restful Controller
83
98
 
84
- <img src="readme_images/controller.jpg" alt="controller.jpg" />
99
+ <img src="readme_images/resource.png" alt="resource.png" />
85
100
 
86
- #### Demo Nested Resource
101
+ #### Nested Resourceful Controller
87
102
 
88
103
  <img src="readme_images/nested.png" alt="nested.png" />
89
104
 
@@ -16,7 +16,7 @@ module BeforeActions
16
16
  end
17
17
 
18
18
  def except(*list, &block)
19
- @controller.send(@the_method, {only: list}, &block)
19
+ @controller.send(@the_method, {except: list}, &block)
20
20
  end
21
21
 
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module BeforeActions
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -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("except before one")
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("two")
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("three")
25
+ expect(assigns(:squirrel)).to eq("except before one")
26
26
  end
27
27
  end
28
28
 
@@ -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
   (0.1ms) rollback transaction
4558
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
4559
+  (0.1ms) begin transaction
4560
+  (0.0ms) SAVEPOINT active_record_1
4561
+ SQL (1.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ AdminFoo Load (0.2ms) SELECT "admin_foos".* FROM "admin_foos"
4567
+  (0.8ms) rollback transaction
4568
+  (0.1ms) begin transaction
4569
+  (0.1ms) SAVEPOINT active_record_1
4570
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4572
+ Processing by AdminFoosController#show as HTML
4573
+ Parameters: {"id"=>"1"}
4574
+ AdminFoo Load (0.2ms) 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
+  (0.5ms) rollback transaction
4577
+  (0.1ms) 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
+  (0.2ms) rollback transaction
4582
+  (0.1ms) begin transaction
4583
+  (0.1ms) SAVEPOINT active_record_1
4584
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.4ms) rollback transaction
4591
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
4597
+  (0.1ms) begin transaction
4598
+  (0.0ms) SAVEPOINT active_record_1
4599
+ SQL (0.2ms) INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.380902"], ["updated_at", "2014-09-12 22:50:00.380902"]]
4600
+  (0.0ms) 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
+  (0.4ms) rollback transaction
4606
+  (0.0ms) begin transaction
4607
+  (0.0ms) SAVEPOINT active_record_1
4608
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (0.4ms) rollback transaction
4615
+  (0.1ms) begin transaction
4616
+ Processing by BunnyController#one as HTML
4617
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
4618
+  (0.1ms) rollback transaction
4619
+  (0.0ms) begin transaction
4620
+ Processing by BunnyController#two as HTML
4621
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
4622
+  (0.1ms) rollback transaction
4623
+  (0.0ms) begin transaction
4624
+ Processing by BunnyController#three as HTML
4625
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
4626
+  (0.1ms) rollback transaction
4627
+  (0.0ms) begin transaction
4628
+ Processing by CatController#one as HTML
4629
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
4630
+  (0.1ms) rollback transaction
4631
+  (0.1ms) begin transaction
4632
+ Processing by CatController#two as HTML
4633
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
4634
+  (0.1ms) rollback transaction
4635
+  (0.0ms) begin transaction
4636
+ Processing by CatController#three as HTML
4637
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
4638
+  (0.1ms) rollback transaction
4639
+  (0.1ms) begin transaction
4640
+ Processing by DogController#one as HTML
4641
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
4642
+  (0.1ms) rollback transaction
4643
+  (0.1ms) begin transaction
4644
+ Processing by DogController#two as HTML
4645
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
4646
+  (0.1ms) rollback transaction
4647
+  (0.1ms) begin transaction
4648
+ Processing by DogController#three as HTML
4649
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
4650
+  (0.1ms) rollback transaction
4651
+  (0.1ms) begin transaction
4652
+  (0.1ms) SAVEPOINT active_record_1
4653
+ SQL (0.7ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.445295"], ["updated_at", "2014-09-12 22:50:00.445295"]]
4654
+  (0.1ms) 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
+ Foo Load (0.5ms) SELECT "foos".* FROM "foos"
4658
+  (0.7ms) rollback transaction
4659
+  (0.1ms) begin transaction
4660
+  (0.2ms) SAVEPOINT active_record_1
4661
+ SQL (0.4ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.463945"], ["updated_at", "2014-09-12 22:50:00.463945"]]
4662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4663
+ Processing by FoosController#show as HTML
4664
+ Parameters: {"id"=>"1"}
4665
+ Foo Load (0.4ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4666
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
4667
+  (0.4ms) rollback transaction
4668
+  (0.1ms) begin transaction
4669
+ Processing by FoosController#new as HTML
4670
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
4671
+  (0.1ms) rollback transaction
4672
+  (0.1ms) begin transaction
4673
+  (0.0ms) SAVEPOINT active_record_1
4674
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.480737"], ["updated_at", "2014-09-12 22:50:00.480737"]]
4675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4676
+ Processing by FoosController#edit as HTML
4677
+ Parameters: {"id"=>"1"}
4678
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4679
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
4680
+  (0.6ms) rollback transaction
4681
+  (0.1ms) begin transaction
4682
+  (0.3ms) SELECT COUNT(*) FROM "foos"
4683
+ Processing by FoosController#create as HTML
4684
+ Parameters: {"foo"=>{"bar"=>"cool"}}
4685
+  (0.1ms) SAVEPOINT active_record_1
4686
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4688
+ Redirected to http://test.host/foos/1
4689
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
4690
+  (0.1ms) SELECT COUNT(*) FROM "foos"
4691
+  (0.5ms) rollback transaction
4692
+  (0.1ms) begin transaction
4693
+ Processing by FoosController#create as HTML
4694
+ Parameters: {"foo"=>{"bar"=>"cool"}}
4695
+  (0.1ms) SAVEPOINT active_record_1
4696
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4698
+ Redirected to http://test.host/foos/1
4699
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
4700
+  (1.9ms) rollback transaction
4701
+  (0.1ms) begin transaction
4702
+ Processing by FoosController#create as HTML
4703
+ Parameters: {"foo"=>{"bar"=>"cool"}}
4704
+  (0.1ms) SAVEPOINT active_record_1
4705
+ SQL (0.4ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.532293"], ["updated_at", "2014-09-12 22:50:00.532293"]]
4706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4707
+ Redirected to http://test.host/foos/1
4708
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
4709
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" ORDER BY "foos"."id" DESC LIMIT 1
4710
+  (0.6ms) rollback transaction
4711
+  (0.1ms) begin transaction
4712
+ Processing by FoosController#create as HTML
4713
+ Parameters: {"foo"=>{"bar"=>""}}
4714
+  (0.1ms) SAVEPOINT active_record_1
4715
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
4716
+ Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 0.2ms)
4717
+  (0.1ms) rollback transaction
4718
+  (0.1ms) begin transaction
4719
+ Processing by FoosController#create as HTML
4720
+ Parameters: {"foo"=>{"bar"=>""}}
4721
+  (0.1ms) SAVEPOINT active_record_1
4722
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
4723
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
4724
+  (0.0ms) rollback transaction
4725
+  (0.0ms) begin transaction
4726
+  (0.1ms) SAVEPOINT active_record_1
4727
+ SQL (0.4ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.563311"], ["updated_at", "2014-09-12 22:50:00.563311"]]
4728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4729
+ Processing by FoosController#update as HTML
4730
+ Parameters: {"foo"=>{"bar"=>"yay"}, "id"=>"1"}
4731
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4732
+  (0.1ms) SAVEPOINT active_record_1
4733
+ SQL (2.0ms) UPDATE "foos" SET "bar" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar", "yay"], ["updated_at", "2014-09-12 22:50:00.567496"]]
4734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4735
+ Redirected to http://test.host/foos/1
4736
+ Completed 302 Found in 6ms (ActiveRecord: 2.2ms)
4737
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4738
+  (0.5ms) rollback transaction
4739
+  (0.1ms) begin transaction
4740
+  (0.0ms) SAVEPOINT active_record_1
4741
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.575605"], ["updated_at", "2014-09-12 22:50:00.575605"]]
4742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4743
+ Processing by FoosController#update as HTML
4744
+ Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
4745
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4746
+  (0.0ms) SAVEPOINT active_record_1
4747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4748
+ Redirected to http://test.host/foos/1
4749
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
4750
+  (0.6ms) rollback transaction
4751
+  (0.1ms) begin transaction
4752
+  (0.1ms) SAVEPOINT active_record_1
4753
+ SQL (0.5ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.582102"], ["updated_at", "2014-09-12 22:50:00.582102"]]
4754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4755
+ Processing by FoosController#update as HTML
4756
+ Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
4757
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4758
+  (0.1ms) SAVEPOINT active_record_1
4759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4760
+ Redirected to http://test.host/foos/1
4761
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
4762
+  (0.6ms) rollback transaction
4763
+  (0.1ms) begin transaction
4764
+  (0.0ms) SAVEPOINT active_record_1
4765
+ SQL (0.4ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.592024"], ["updated_at", "2014-09-12 22:50:00.592024"]]
4766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4767
+ Processing by FoosController#update as HTML
4768
+ Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
4769
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4770
+  (0.0ms) SAVEPOINT active_record_1
4771
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
4772
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms)
4773
+  (0.6ms) rollback transaction
4774
+  (0.1ms) begin transaction
4775
+  (0.1ms) SAVEPOINT active_record_1
4776
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.599916"], ["updated_at", "2014-09-12 22:50:00.599916"]]
4777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4778
+ Processing by FoosController#update as HTML
4779
+ Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
4780
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4781
+  (0.0ms) SAVEPOINT active_record_1
4782
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
4783
+ Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
4784
+  (0.6ms) rollback transaction
4785
+  (0.1ms) begin transaction
4786
+  (0.1ms) SAVEPOINT active_record_1
4787
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:50:00.608519"], ["updated_at", "2014-09-12 22:50:00.608519"]]
4788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4789
+  (0.1ms) SELECT COUNT(*) FROM "foos"
4790
+ Processing by FoosController#destroy as HTML
4791
+ Parameters: {"id"=>"1"}
4792
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4793
+  (0.0ms) SAVEPOINT active_record_1
4794
+ SQL (0.4ms) DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
4795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4796
+ Redirected to http://test.host/foos
4797
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
4798
+  (0.1ms) SELECT COUNT(*) FROM "foos"
4799
+  (0.5ms) rollback transaction
4800
+  (0.1ms) begin transaction
4801
+  (0.1ms) SAVEPOINT active_record_1
4802
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4804
+ Processing by FoosController#destroy as HTML
4805
+ Parameters: {"id"=>"1"}
4806
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4807
+  (0.1ms) SAVEPOINT active_record_1
4808
+ SQL (0.8ms) DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
4809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4810
+ Redirected to http://test.host/foos
4811
+ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
4812
+  (0.6ms) rollback transaction
4813
+  (0.1ms) begin transaction
4814
+ Processing by SquirrelController#one as HTML
4815
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
4816
+  (0.1ms) rollback transaction
4817
+  (0.1ms) begin transaction
4818
+ Processing by SquirrelController#two as HTML
4819
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
4820
+  (0.1ms) rollback transaction
4821
+  (0.1ms) begin transaction
4822
+ Processing by SquirrelController#three as HTML
4823
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
4824
+  (0.1ms) rollback transaction
4825
+  (2.4ms) CREATE TABLE "admin_foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime) 
4826
+  (1.0ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime)
4827
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
4828
+  (0.5ms) select sqlite_version(*)
4829
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4830
+  (0.1ms) SELECT version FROM "schema_migrations"
4831
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140912042735')
4832
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140912040816')
4833
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4834
+  (1.2ms) CREATE TABLE "admin_foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime) 
4835
+  (1.6ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar" varchar(255), "created_at" datetime, "updated_at" datetime)
4836
+  (19.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
4837
+  (0.2ms) select sqlite_version(*)
4838
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4839
+  (0.2ms) SELECT version FROM "schema_migrations"
4840
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140912042735')
4841
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140912040816')
4842
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4843
+  (0.1ms) begin transaction
4844
+  (0.1ms) SAVEPOINT active_record_1
4845
+ SQL (0.9ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ AdminFoo Load (0.1ms) SELECT "admin_foos".* FROM "admin_foos"
4851
+  (0.5ms) rollback transaction
4852
+  (0.1ms) begin transaction
4853
+  (0.1ms) SAVEPOINT active_record_1
4854
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4856
+ Processing by AdminFoosController#show as HTML
4857
+ Parameters: {"id"=>"1"}
4858
+ AdminFoo Load (0.1ms) 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
+  (6.9ms) rollback transaction
4861
+  (0.1ms) 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
+  (0.1ms) rollback transaction
4866
+  (0.1ms) begin transaction
4867
+  (0.1ms) SAVEPOINT active_record_1
4868
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.6ms) rollback transaction
4875
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
4881
+  (0.1ms) begin transaction
4882
+  (0.1ms) SAVEPOINT active_record_1
4883
+ SQL (0.6ms) INSERT INTO "admin_foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.703333"], ["updated_at", "2014-09-12 22:52:06.703333"]]
4884
+  (0.1ms) 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
+  (3.5ms) rollback transaction
4890
+  (0.1ms) begin transaction
4891
+  (0.0ms) SAVEPOINT active_record_1
4892
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (0.6ms) rollback transaction
4899
+  (0.1ms) begin transaction
4900
+ Processing by BunnyController#one as HTML
4901
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
4902
+  (0.1ms) rollback transaction
4903
+  (0.1ms) begin transaction
4904
+ Processing by BunnyController#two as HTML
4905
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
4906
+  (0.1ms) rollback transaction
4907
+  (0.1ms) begin transaction
4908
+ Processing by BunnyController#three as HTML
4909
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
4910
+  (0.1ms) rollback transaction
4911
+  (0.1ms) begin transaction
4912
+ Processing by CatController#one as HTML
4913
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
4914
+  (0.1ms) rollback transaction
4915
+  (0.1ms) begin transaction
4916
+ Processing by CatController#two as HTML
4917
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
4918
+  (8.0ms) rollback transaction
4919
+  (0.1ms) begin transaction
4920
+ Processing by CatController#three as HTML
4921
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
4922
+  (0.1ms) rollback transaction
4923
+  (0.1ms) begin transaction
4924
+ Processing by DogController#one as HTML
4925
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
4926
+  (0.1ms) rollback transaction
4927
+  (0.1ms) begin transaction
4928
+ Processing by DogController#two as HTML
4929
+ Completed 200 OK in 15ms (Views: 15.0ms | ActiveRecord: 0.0ms)
4930
+  (0.1ms) rollback transaction
4931
+  (0.1ms) begin transaction
4932
+ Processing by DogController#three as HTML
4933
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
4934
+  (0.1ms) rollback transaction
4935
+  (0.1ms) begin transaction
4936
+  (0.1ms) SAVEPOINT active_record_1
4937
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.834878"], ["updated_at", "2014-09-12 22:52:06.834878"]]
4938
+  (0.1ms) 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
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos"
4942
+  (0.9ms) rollback transaction
4943
+  (0.1ms) begin transaction
4944
+  (0.1ms) SAVEPOINT active_record_1
4945
+ SQL (0.4ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.858130"], ["updated_at", "2014-09-12 22:52:06.858130"]]
4946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4947
+ Processing by FoosController#show as HTML
4948
+ Parameters: {"id"=>"1"}
4949
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4950
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)
4951
+  (0.4ms) rollback transaction
4952
+  (0.1ms) begin transaction
4953
+ Processing by FoosController#new as HTML
4954
+ Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
4955
+  (0.1ms) rollback transaction
4956
+  (0.1ms) begin transaction
4957
+  (0.1ms) SAVEPOINT active_record_1
4958
+ SQL (0.4ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.882648"], ["updated_at", "2014-09-12 22:52:06.882648"]]
4959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4960
+ Processing by FoosController#edit as HTML
4961
+ Parameters: {"id"=>"1"}
4962
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4963
+ Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.1ms)
4964
+  (12.6ms) rollback transaction
4965
+  (0.1ms) begin transaction
4966
+  (0.2ms) SELECT COUNT(*) FROM "foos"
4967
+ Processing by FoosController#create as HTML
4968
+ Parameters: {"foo"=>{"bar"=>"cool"}}
4969
+  (0.1ms) SAVEPOINT active_record_1
4970
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4972
+ Redirected to http://test.host/foos/1
4973
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
4974
+  (0.1ms) SELECT COUNT(*) FROM "foos"
4975
+  (0.7ms) rollback transaction
4976
+  (0.1ms) begin transaction
4977
+ Processing by FoosController#create as HTML
4978
+ Parameters: {"foo"=>{"bar"=>"cool"}}
4979
+  (0.1ms) SAVEPOINT active_record_1
4980
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4982
+ Redirected to http://test.host/foos/1
4983
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
4984
+  (0.4ms) rollback transaction
4985
+  (0.1ms) begin transaction
4986
+ Processing by FoosController#create as HTML
4987
+ Parameters: {"foo"=>{"bar"=>"cool"}}
4988
+  (0.1ms) SAVEPOINT active_record_1
4989
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.940635"], ["updated_at", "2014-09-12 22:52:06.940635"]]
4990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4991
+ Redirected to http://test.host/foos/1
4992
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
4993
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" ORDER BY "foos"."id" DESC LIMIT 1
4994
+  (0.3ms) rollback transaction
4995
+  (0.1ms) begin transaction
4996
+ Processing by FoosController#create as HTML
4997
+ Parameters: {"foo"=>{"bar"=>""}}
4998
+  (0.1ms) SAVEPOINT active_record_1
4999
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5000
+ Completed 200 OK in 13ms (Views: 1.3ms | ActiveRecord: 0.2ms)
5001
+  (0.1ms) rollback transaction
5002
+  (0.1ms) begin transaction
5003
+ Processing by FoosController#create as HTML
5004
+ Parameters: {"foo"=>{"bar"=>""}}
5005
+  (0.1ms) SAVEPOINT active_record_1
5006
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5007
+ Completed 200 OK in 7ms (Views: 1.3ms | ActiveRecord: 0.2ms)
5008
+  (0.1ms) rollback transaction
5009
+  (0.1ms) begin transaction
5010
+  (0.1ms) SAVEPOINT active_record_1
5011
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.973284"], ["updated_at", "2014-09-12 22:52:06.973284"]]
5012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5013
+ Processing by FoosController#update as HTML
5014
+ Parameters: {"foo"=>{"bar"=>"yay"}, "id"=>"1"}
5015
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5016
+  (0.0ms) SAVEPOINT active_record_1
5017
+ SQL (1.4ms) UPDATE "foos" SET "bar" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar", "yay"], ["updated_at", "2014-09-12 22:52:06.976533"]]
5018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5019
+ Redirected to http://test.host/foos/1
5020
+ Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
5021
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5022
+  (0.4ms) rollback transaction
5023
+  (0.1ms) begin transaction
5024
+  (0.1ms) SAVEPOINT active_record_1
5025
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.982920"], ["updated_at", "2014-09-12 22:52:06.982920"]]
5026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5027
+ Processing by FoosController#update as HTML
5028
+ Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
5029
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5030
+  (0.1ms) SAVEPOINT active_record_1
5031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5032
+ Redirected to http://test.host/foos/1
5033
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
5034
+  (0.4ms) rollback transaction
5035
+  (0.1ms) begin transaction
5036
+  (0.0ms) SAVEPOINT active_record_1
5037
+ SQL (0.2ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.989645"], ["updated_at", "2014-09-12 22:52:06.989645"]]
5038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5039
+ Processing by FoosController#update as HTML
5040
+ Parameters: {"foo"=>{"bar"=>"cool"}, "id"=>"1"}
5041
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5042
+  (0.0ms) SAVEPOINT active_record_1
5043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5044
+ Redirected to http://test.host/foos/1
5045
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
5046
+  (0.4ms) rollback transaction
5047
+  (0.1ms) begin transaction
5048
+  (0.1ms) SAVEPOINT active_record_1
5049
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:06.997087"], ["updated_at", "2014-09-12 22:52:06.997087"]]
5050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5051
+ Processing by FoosController#update as HTML
5052
+ Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
5053
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5054
+  (0.0ms) SAVEPOINT active_record_1
5055
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
5056
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms)
5057
+  (0.4ms) rollback transaction
5058
+  (0.1ms) begin transaction
5059
+  (0.1ms) SAVEPOINT active_record_1
5060
+ SQL (1.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:07.004687"], ["updated_at", "2014-09-12 22:52:07.004687"]]
5061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5062
+ Processing by FoosController#update as HTML
5063
+ Parameters: {"foo"=>{"bar"=>""}, "id"=>"1"}
5064
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5065
+  (0.1ms) SAVEPOINT active_record_1
5066
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5067
+ Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms)
5068
+  (0.4ms) rollback transaction
5069
+  (0.1ms) begin transaction
5070
+  (0.1ms) SAVEPOINT active_record_1
5071
+ SQL (0.3ms) INSERT INTO "foos" ("bar", "created_at", "updated_at") VALUES (?, ?, ?) [["bar", "cool"], ["created_at", "2014-09-12 22:52:07.017842"], ["updated_at", "2014-09-12 22:52:07.017842"]]
5072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5073
+  (0.1ms) SELECT COUNT(*) FROM "foos"
5074
+ Processing by FoosController#destroy as HTML
5075
+ Parameters: {"id"=>"1"}
5076
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5077
+  (0.0ms) SAVEPOINT active_record_1
5078
+ SQL (0.5ms) DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
5079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5080
+ Redirected to http://test.host/foos
5081
+ Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
5082
+  (0.1ms) SELECT COUNT(*) FROM "foos"
5083
+  (0.5ms) rollback transaction
5084
+  (0.1ms) begin transaction
5085
+  (0.1ms) SAVEPOINT active_record_1
5086
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5088
+ Processing by FoosController#destroy as HTML
5089
+ Parameters: {"id"=>"1"}
5090
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5091
+  (0.1ms) SAVEPOINT active_record_1
5092
+ SQL (0.2ms) DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 1]]
5093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5094
+ Redirected to http://test.host/foos
5095
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
5096
+  (0.4ms) rollback transaction
5097
+  (0.1ms) begin transaction
5098
+ Processing by SquirrelController#one as HTML
5099
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
5100
+  (0.1ms) rollback transaction
5101
+  (0.1ms) begin transaction
5102
+ Processing by SquirrelController#two as HTML
5103
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
5104
+  (0.1ms) rollback transaction
5105
+  (0.2ms) begin transaction
5106
+ Processing by SquirrelController#three as HTML
5107
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
5108
+  (0.2ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: before_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Pinto