cullender 0.0.1 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84cd07f131f0613540f841cfd74fd0d99080ecf5
4
- data.tar.gz: b6c36dd6ba6f2bf5d51a5682c1f0a2ff2b263760
3
+ metadata.gz: 3e3ed147a965c5fb347ae4ec093119cc39dec7d8
4
+ data.tar.gz: 42ce087c1b99f2c5142e077e6689ad9fc3ce9b2d
5
5
  SHA512:
6
- metadata.gz: 60085f0fc2e0fc7bd4400f4928c14b861b5dde3b3beb38d26c39c3e8900aa4de1a3fbf53a439798376142b4692322429e2d432c9e8641aa62a0aef07d9f1bf48
7
- data.tar.gz: be7c775c08cf93465cf4fa2cd8f43618bd6030d670a0acf14b005331b4c76d7abadf210f8b6a9bc24c5080985d6a7acef97d48326d1047cf3a9e3c76876db764
6
+ metadata.gz: b4745e1e5e678f48310cf6a50e4b1bb9fcb9e899e460c49673e3cd87d4f0696d5b61daf18fd7e3c6f60f156ef70df658d2994c9b0065d181fe718f5d5523b8f0
7
+ data.tar.gz: 9ecab26cc33d149e744151d2025663cd4fe3bf28f32b4d143231e69c800b882bd5e00e6d81dc268aa1b1edcd5c1691bcba558357f375ef9481b917a01e1b43a2
data/Rakefile CHANGED
@@ -4,6 +4,8 @@ rescue LoadError
4
4
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
5
  end
6
6
 
7
+ require "bundler/gem_tasks"
8
+
7
9
  require 'rdoc/task'
8
10
 
9
11
  RDoc::Task.new(:rdoc) do |rdoc|
@@ -21,14 +23,18 @@ load 'rails/tasks/engine.rake'
21
23
 
22
24
  Bundler::GemHelper.install_tasks
23
25
 
24
- require 'rake/testtask'
26
+ require 'rspec/core/rake_task'
27
+ task :default => :spec
28
+ RSpec::Core::RakeTask.new
25
29
 
26
- Rake::TestTask.new(:test) do |t|
27
- t.libs << 'lib'
28
- t.libs << 'spec'
29
- t.pattern = 'spec/**/*_spec.rb'
30
- t.verbose = false
31
- end
30
+ # require 'rake/testtask'
31
+
32
+ # Rake::TestTask.new(:test) do |t|
33
+ # t.libs << 'lib'
34
+ # t.libs << 'spec'
35
+ # t.pattern = 'spec/**/*_spec.rb'
36
+ # t.verbose = false
37
+ # end
32
38
 
33
39
 
34
- task default: :test
40
+ # task default: :test
data/lib/cullender.rb CHANGED
@@ -1,19 +1,6 @@
1
1
  require "tire"
2
2
  require "cullender/core_ext/hash"
3
3
 
4
- module Rails
5
- module Generators
6
- module Migration
7
- module ClassMethods
8
- def next_migration_number(dirname) #:nodoc:
9
- "123344556676"
10
- end
11
- end
12
- end
13
- end
14
- end
15
-
16
-
17
4
  module Cullender
18
5
 
19
6
  module Controllers
@@ -1,3 +1,3 @@
1
1
  module Cullender
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,6 +14,16 @@ module Cullender
14
14
  class_option :routes, :desc => "Generate routes", :type => :boolean, :default => true
15
15
 
16
16
 
17
+ def self.next_migration_number(path)
18
+ unless @prev_migration_nr
19
+ @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
20
+ else
21
+ @prev_migration_nr += 1
22
+ end
23
+ @prev_migration_nr.to_s
24
+ end
25
+
26
+
17
27
  def add_cullender_routes
18
28
  cullender_route = "cullender_for :#{plural_name}"
19
29
  cullender_route << %Q(, :class_name => "#{class_name}") if class_name.include?("::")
@@ -6,24 +6,6 @@ describe "Cullender::Controllers::FilterLogic" do
6
6
  @object = Object.new
7
7
  @object.extend(Cullender::Controllers::FilterLogic)
8
8
  end
9
-
10
-
11
- def add_or_filter(key, params, field, should_raise = false)
12
- if params.present? && params.has_key?(key)
13
- if should_raise
14
- params[key] = {1 => params[key], 2 => add_operator(field)}
15
- else
16
- idx = params[key].keys.last.to_i + 1
17
- params[key].deep_merge!({idx => add_operator(field)})
18
- end
19
- else
20
- if should_raise
21
- params[key] = add_operator(field)
22
- else
23
- params[key] = add_operator(field)
24
- end
25
- end
26
- end
27
9
  describe "#add_or_filter" do
28
10
  context "with filter(s) defined" do
29
11
  context "OR with the base" do
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :encrypted_cookie_store, key: '_dummy_session'
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -19784,3 +19784,1321 @@ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
19784
19784
  Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'example' LIMIT 1
19785
19785
  SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 26 Apr 2013 02:37:20 UTC +00:00], ["name", "example"], ["triggers", "--- {}\n"], ["updated_at", Fri, 26 Apr 2013 02:37:20 UTC +00:00]]
19786
19786
   (0.4ms) rollback transaction
19787
+  (4.0ms) begin transaction
19788
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19789
+ SQL (4.0ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19790
+ Processing by Cullender::RulesController#index as HTML
19791
+ Rendered cullender/rules/index.html.erb within layouts/application (0.3ms)
19792
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
19793
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules"
19794
+  (0.7ms) rollback transaction
19795
+  (0.1ms) begin transaction
19796
+ Processing by Cullender::RulesController#new as HTML
19797
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
19798
+  (0.1ms) rollback transaction
19799
+  (0.1ms) begin transaction
19800
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19801
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19802
+ Processing by Cullender::RulesController#show as HTML
19803
+ Parameters: {"id"=>"1"}
19804
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19805
+ Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms)
19806
+  (0.5ms) rollback transaction
19807
+  (0.1ms) begin transaction
19808
+  (0.1ms) SELECT COUNT(*) FROM "rules"
19809
+ Processing by Cullender::RulesController#create as HTML
19810
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
19811
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19812
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19813
+ Redirected to http://test.host/events/rule
19814
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
19815
+  (0.1ms) SELECT COUNT(*) FROM "rules"
19816
+  (0.4ms) rollback transaction
19817
+  (0.1ms) begin transaction
19818
+ Processing by Cullender::RulesController#create as HTML
19819
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
19820
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19821
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19822
+ Redirected to http://test.host/events/rule
19823
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
19824
+  (0.3ms) rollback transaction
19825
+  (0.1ms) begin transaction
19826
+ Processing by Cullender::RulesController#create as HTML
19827
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
19828
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19829
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19830
+ Redirected to http://test.host/events/rule
19831
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
19832
+  (0.7ms) rollback transaction
19833
+  (0.1ms) begin transaction
19834
+ Processing by Cullender::RulesController#create as HTML
19835
+ Parameters: {"rule"=>{"name"=>"asd"}}
19836
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
19837
+  (0.1ms) rollback transaction
19838
+  (0.1ms) begin transaction
19839
+ Processing by Cullender::RulesController#create as HTML
19840
+ Parameters: {"rule"=>{"name"=>"asd"}}
19841
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
19842
+  (0.1ms) rollback transaction
19843
+  (0.1ms) begin transaction
19844
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19845
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19846
+ Processing by Cullender::RulesController#update as HTML
19847
+ Parameters: {"rule"=>{"name"=>"New Name"}, "id"=>"1"}
19848
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19849
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
19850
+  (0.8ms) rollback transaction
19851
+  (0.1ms) begin transaction
19852
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19853
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19854
+ Processing by Cullender::RulesController#update as HTML
19855
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
19856
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19857
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
19858
+ SQL (0.2ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["triggers", "--- {}\n"]]
19859
+ Redirected to http://test.host/events/rule
19860
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
19861
+  (0.6ms) rollback transaction
19862
+  (0.1ms) begin transaction
19863
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19864
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19865
+ Processing by Cullender::RulesController#update as HTML
19866
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
19867
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19868
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
19869
+ SQL (0.1ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["triggers", "--- {}\n"]]
19870
+ Redirected to http://test.host/events/rule
19871
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
19872
+  (0.7ms) rollback transaction
19873
+  (0.1ms) begin transaction
19874
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19875
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19876
+ Processing by Cullender::RulesController#update as HTML
19877
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
19878
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19879
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
19880
+  (0.5ms) rollback transaction
19881
+  (0.1ms) begin transaction
19882
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19883
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19884
+ Processing by Cullender::RulesController#update as HTML
19885
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
19886
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19887
+ Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
19888
+  (0.6ms) rollback transaction
19889
+  (0.1ms) begin transaction
19890
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19891
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19892
+  (0.1ms) SELECT COUNT(*) FROM "rules"
19893
+ Processing by Cullender::RulesController#destroy as HTML
19894
+ Parameters: {"id"=>"1"}
19895
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19896
+ SQL (0.2ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
19897
+ Redirected to http://test.host/events/rule
19898
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
19899
+  (0.1ms) SELECT COUNT(*) FROM "rules"
19900
+  (0.6ms) rollback transaction
19901
+  (0.1ms) begin transaction
19902
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19903
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19904
+ Processing by Cullender::RulesController#destroy as HTML
19905
+ Parameters: {"id"=>"1"}
19906
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19907
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
19908
+ Redirected to http://test.host/events/rule
19909
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
19910
+  (0.5ms) rollback transaction
19911
+  (0.1ms) begin transaction
19912
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
19913
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:47:42 UTC +00:00]]
19914
+ Processing by Cullender::RulesController#destroy as HTML
19915
+ Parameters: {"id"=>"1"}
19916
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
19917
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
19918
+ Redirected to http://test.host/events/rule
19919
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
19920
+  (0.4ms) rollback transaction
19921
+  (0.1ms) begin transaction
19922
+  (0.1ms) rollback transaction
19923
+  (0.1ms) begin transaction
19924
+  (0.1ms) rollback transaction
19925
+  (0.1ms) begin transaction
19926
+  (0.1ms) rollback transaction
19927
+  (0.1ms) begin transaction
19928
+  (0.1ms) rollback transaction
19929
+  (0.1ms) begin transaction
19930
+  (0.1ms) rollback transaction
19931
+  (0.1ms) begin transaction
19932
+  (0.1ms) rollback transaction
19933
+  (0.1ms) begin transaction
19934
+  (0.1ms) rollback transaction
19935
+  (0.1ms) begin transaction
19936
+  (0.1ms) rollback transaction
19937
+  (0.1ms) begin transaction
19938
+  (0.1ms) rollback transaction
19939
+  (0.1ms) begin transaction
19940
+  (0.1ms) rollback transaction
19941
+  (0.1ms) begin transaction
19942
+  (0.1ms) rollback transaction
19943
+  (0.1ms) begin transaction
19944
+  (0.1ms) rollback transaction
19945
+  (0.1ms) begin transaction
19946
+  (0.1ms) rollback transaction
19947
+  (0.1ms) begin transaction
19948
+  (0.1ms) rollback transaction
19949
+  (0.1ms) begin transaction
19950
+  (0.0ms) rollback transaction
19951
+  (0.0ms) begin transaction
19952
+  (0.0ms) rollback transaction
19953
+  (0.1ms) begin transaction
19954
+  (0.0ms) rollback transaction
19955
+  (0.0ms) begin transaction
19956
+  (0.0ms) rollback transaction
19957
+  (0.0ms) begin transaction
19958
+  (0.0ms) rollback transaction
19959
+  (0.0ms) begin transaction
19960
+  (0.0ms) rollback transaction
19961
+  (0.0ms) begin transaction
19962
+  (0.0ms) rollback transaction
19963
+  (0.0ms) begin transaction
19964
+  (0.0ms) rollback transaction
19965
+  (0.1ms) begin transaction
19966
+  (0.0ms) rollback transaction
19967
+  (0.1ms) begin transaction
19968
+  (0.1ms) rollback transaction
19969
+  (0.1ms) begin transaction
19970
+  (0.1ms) rollback transaction
19971
+  (0.1ms) begin transaction
19972
+  (0.1ms) rollback transaction
19973
+  (0.1ms) begin transaction
19974
+  (0.1ms) rollback transaction
19975
+  (0.1ms) begin transaction
19976
+  (0.1ms) rollback transaction
19977
+  (0.1ms) begin transaction
19978
+  (0.1ms) rollback transaction
19979
+  (0.1ms) begin transaction
19980
+  (0.1ms) rollback transaction
19981
+  (0.1ms) begin transaction
19982
+  (0.1ms) rollback transaction
19983
+  (0.1ms) begin transaction
19984
+  (0.1ms) rollback transaction
19985
+  (0.1ms) begin transaction
19986
+  (0.0ms) rollback transaction
19987
+  (0.1ms) begin transaction
19988
+  (0.1ms) rollback transaction
19989
+  (0.1ms) begin transaction
19990
+  (0.1ms) rollback transaction
19991
+  (0.1ms) begin transaction
19992
+  (0.1ms) rollback transaction
19993
+  (0.1ms) begin transaction
19994
+  (0.1ms) rollback transaction
19995
+  (0.1ms) begin transaction
19996
+  (0.1ms) rollback transaction
19997
+  (0.1ms) begin transaction
19998
+  (0.1ms) rollback transaction
19999
+  (0.1ms) begin transaction
20000
+  (0.1ms) rollback transaction
20001
+  (0.1ms) begin transaction
20002
+  (0.1ms) rollback transaction
20003
+  (0.1ms) begin transaction
20004
+  (0.1ms) rollback transaction
20005
+  (0.1ms) begin transaction
20006
+  (0.1ms) rollback transaction
20007
+  (0.1ms) begin transaction
20008
+  (0.1ms) rollback transaction
20009
+  (0.1ms) begin transaction
20010
+  (0.1ms) rollback transaction
20011
+  (0.1ms) begin transaction
20012
+  (0.1ms) rollback transaction
20013
+  (0.1ms) begin transaction
20014
+  (0.1ms) rollback transaction
20015
+  (0.1ms) begin transaction
20016
+  (0.1ms) rollback transaction
20017
+  (0.1ms) begin transaction
20018
+  (0.0ms) rollback transaction
20019
+  (0.1ms) begin transaction
20020
+  (0.0ms) rollback transaction
20021
+  (0.1ms) begin transaction
20022
+  (0.0ms) rollback transaction
20023
+  (0.1ms) begin transaction
20024
+  (0.0ms) rollback transaction
20025
+  (0.0ms) begin transaction
20026
+  (0.0ms) rollback transaction
20027
+  (0.0ms) begin transaction
20028
+  (0.0ms) rollback transaction
20029
+  (0.0ms) begin transaction
20030
+  (0.0ms) rollback transaction
20031
+  (0.0ms) begin transaction
20032
+  (0.0ms) rollback transaction
20033
+  (0.0ms) begin transaction
20034
+  (0.0ms) rollback transaction
20035
+  (0.0ms) begin transaction
20036
+  (0.0ms) rollback transaction
20037
+  (0.0ms) begin transaction
20038
+  (0.0ms) rollback transaction
20039
+  (0.0ms) begin transaction
20040
+  (0.0ms) rollback transaction
20041
+  (0.0ms) begin transaction
20042
+  (0.0ms) rollback transaction
20043
+  (0.0ms) begin transaction
20044
+  (0.0ms) rollback transaction
20045
+  (0.0ms) begin transaction
20046
+  (0.0ms) rollback transaction
20047
+  (0.0ms) begin transaction
20048
+  (0.1ms) rollback transaction
20049
+  (0.3ms) begin transaction
20050
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20051
+ SQL (2.6ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20052
+ Processing by Cullender::RulesController#index as HTML
20053
+ Rendered cullender/rules/index.html.erb within layouts/application (0.2ms)
20054
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
20055
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules"
20056
+  (1.2ms) rollback transaction
20057
+  (0.1ms) begin transaction
20058
+ Processing by Cullender::RulesController#new as HTML
20059
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
20060
+  (0.1ms) rollback transaction
20061
+  (0.0ms) begin transaction
20062
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20063
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20064
+ Processing by Cullender::RulesController#show as HTML
20065
+ Parameters: {"id"=>"1"}
20066
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20067
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
20068
+  (0.6ms) rollback transaction
20069
+  (0.1ms) begin transaction
20070
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20071
+ Processing by Cullender::RulesController#create as HTML
20072
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20073
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20074
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20075
+ Redirected to http://test.host/events/rule
20076
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
20077
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20078
+  (0.3ms) rollback transaction
20079
+  (0.1ms) begin transaction
20080
+ Processing by Cullender::RulesController#create as HTML
20081
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20082
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20083
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20084
+ Redirected to http://test.host/events/rule
20085
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
20086
+  (0.3ms) rollback transaction
20087
+  (0.1ms) begin transaction
20088
+ Processing by Cullender::RulesController#create as HTML
20089
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20090
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20091
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20092
+ Redirected to http://test.host/events/rule
20093
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
20094
+  (4.5ms) rollback transaction
20095
+  (0.1ms) begin transaction
20096
+ Processing by Cullender::RulesController#create as HTML
20097
+ Parameters: {"rule"=>{"name"=>"asd"}}
20098
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
20099
+  (0.1ms) rollback transaction
20100
+  (0.0ms) begin transaction
20101
+ Processing by Cullender::RulesController#create as HTML
20102
+ Parameters: {"rule"=>{"name"=>"asd"}}
20103
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
20104
+  (0.1ms) rollback transaction
20105
+  (0.1ms) begin transaction
20106
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20107
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20108
+ Processing by Cullender::RulesController#update as HTML
20109
+ Parameters: {"rule"=>{"name"=>"New Name"}, "id"=>"1"}
20110
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20111
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20112
+  (0.4ms) rollback transaction
20113
+  (0.1ms) begin transaction
20114
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20115
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20116
+ Processing by Cullender::RulesController#update as HTML
20117
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20118
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20119
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20120
+ SQL (0.2ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["triggers", "--- {}\n"]]
20121
+ Redirected to http://test.host/events/rule
20122
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
20123
+  (1.6ms) rollback transaction
20124
+  (0.1ms) begin transaction
20125
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20126
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20127
+ Processing by Cullender::RulesController#update as HTML
20128
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20129
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20130
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20131
+ SQL (0.1ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["triggers", "--- {}\n"]]
20132
+ Redirected to http://test.host/events/rule
20133
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
20134
+  (0.4ms) rollback transaction
20135
+  (0.1ms) begin transaction
20136
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20137
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20138
+ Processing by Cullender::RulesController#update as HTML
20139
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20140
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20141
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
20142
+  (0.4ms) rollback transaction
20143
+  (0.1ms) begin transaction
20144
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20145
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20146
+ Processing by Cullender::RulesController#update as HTML
20147
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20148
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20149
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
20150
+  (0.4ms) rollback transaction
20151
+  (0.1ms) begin transaction
20152
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20153
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20154
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20155
+ Processing by Cullender::RulesController#destroy as HTML
20156
+ Parameters: {"id"=>"1"}
20157
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20158
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20159
+ Redirected to http://test.host/events/rule
20160
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
20161
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20162
+  (0.4ms) rollback transaction
20163
+  (0.1ms) begin transaction
20164
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20165
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20166
+ Processing by Cullender::RulesController#destroy as HTML
20167
+ Parameters: {"id"=>"1"}
20168
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20169
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20170
+ Redirected to http://test.host/events/rule
20171
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
20172
+  (0.4ms) rollback transaction
20173
+  (0.1ms) begin transaction
20174
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20175
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20176
+ Processing by Cullender::RulesController#destroy as HTML
20177
+ Parameters: {"id"=>"1"}
20178
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20179
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20180
+ Redirected to http://test.host/events/rule
20181
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
20182
+  (0.4ms) rollback transaction
20183
+  (0.1ms) begin transaction
20184
+  (0.1ms) rollback transaction
20185
+  (0.1ms) begin transaction
20186
+  (0.0ms) rollback transaction
20187
+  (0.1ms) begin transaction
20188
+  (0.0ms) rollback transaction
20189
+  (0.0ms) begin transaction
20190
+  (0.0ms) rollback transaction
20191
+  (0.1ms) begin transaction
20192
+  (0.0ms) rollback transaction
20193
+  (0.1ms) begin transaction
20194
+  (0.1ms) rollback transaction
20195
+  (0.0ms) begin transaction
20196
+  (0.0ms) rollback transaction
20197
+  (0.0ms) begin transaction
20198
+  (0.0ms) rollback transaction
20199
+  (0.1ms) begin transaction
20200
+  (0.0ms) rollback transaction
20201
+  (0.1ms) begin transaction
20202
+  (0.0ms) rollback transaction
20203
+  (0.0ms) begin transaction
20204
+  (0.0ms) rollback transaction
20205
+  (0.0ms) begin transaction
20206
+  (0.0ms) rollback transaction
20207
+  (0.0ms) begin transaction
20208
+  (0.0ms) rollback transaction
20209
+  (0.1ms) begin transaction
20210
+  (0.0ms) rollback transaction
20211
+  (0.0ms) begin transaction
20212
+  (0.0ms) rollback transaction
20213
+  (0.0ms) begin transaction
20214
+  (0.0ms) rollback transaction
20215
+  (0.0ms) begin transaction
20216
+  (0.0ms) rollback transaction
20217
+  (0.0ms) begin transaction
20218
+  (0.0ms) rollback transaction
20219
+  (0.1ms) begin transaction
20220
+  (0.0ms) rollback transaction
20221
+  (0.0ms) begin transaction
20222
+  (0.0ms) rollback transaction
20223
+  (0.0ms) begin transaction
20224
+  (0.0ms) rollback transaction
20225
+  (0.0ms) begin transaction
20226
+  (0.0ms) rollback transaction
20227
+  (0.0ms) begin transaction
20228
+  (0.0ms) rollback transaction
20229
+  (0.1ms) begin transaction
20230
+  (0.1ms) rollback transaction
20231
+  (0.1ms) begin transaction
20232
+  (0.1ms) rollback transaction
20233
+  (0.1ms) begin transaction
20234
+  (0.1ms) rollback transaction
20235
+  (0.1ms) begin transaction
20236
+  (0.1ms) rollback transaction
20237
+  (0.1ms) begin transaction
20238
+  (0.1ms) rollback transaction
20239
+  (0.1ms) begin transaction
20240
+  (0.1ms) rollback transaction
20241
+  (0.1ms) begin transaction
20242
+  (0.0ms) rollback transaction
20243
+  (0.1ms) begin transaction
20244
+  (0.1ms) rollback transaction
20245
+  (0.1ms) begin transaction
20246
+  (0.1ms) rollback transaction
20247
+  (0.1ms) begin transaction
20248
+  (0.1ms) rollback transaction
20249
+  (0.1ms) begin transaction
20250
+  (0.1ms) rollback transaction
20251
+  (0.1ms) begin transaction
20252
+  (0.1ms) rollback transaction
20253
+  (0.1ms) begin transaction
20254
+  (0.1ms) rollback transaction
20255
+  (0.1ms) begin transaction
20256
+  (0.1ms) rollback transaction
20257
+  (0.1ms) begin transaction
20258
+  (0.1ms) rollback transaction
20259
+  (0.1ms) begin transaction
20260
+  (0.1ms) rollback transaction
20261
+  (0.1ms) begin transaction
20262
+  (0.1ms) rollback transaction
20263
+  (0.1ms) begin transaction
20264
+  (0.1ms) rollback transaction
20265
+  (0.1ms) begin transaction
20266
+  (0.1ms) rollback transaction
20267
+  (0.1ms) begin transaction
20268
+  (0.1ms) rollback transaction
20269
+  (0.1ms) begin transaction
20270
+  (0.1ms) rollback transaction
20271
+  (0.1ms) begin transaction
20272
+  (0.1ms) rollback transaction
20273
+  (0.1ms) begin transaction
20274
+  (0.1ms) rollback transaction
20275
+  (0.1ms) begin transaction
20276
+  (0.1ms) rollback transaction
20277
+  (0.1ms) begin transaction
20278
+  (0.1ms) rollback transaction
20279
+  (0.1ms) begin transaction
20280
+  (0.1ms) rollback transaction
20281
+  (0.1ms) begin transaction
20282
+  (0.0ms) rollback transaction
20283
+  (0.1ms) begin transaction
20284
+  (0.0ms) rollback transaction
20285
+  (0.1ms) begin transaction
20286
+  (0.0ms) rollback transaction
20287
+  (0.0ms) begin transaction
20288
+  (0.0ms) rollback transaction
20289
+  (0.0ms) begin transaction
20290
+  (0.0ms) rollback transaction
20291
+  (0.1ms) begin transaction
20292
+  (0.0ms) rollback transaction
20293
+  (0.0ms) begin transaction
20294
+  (0.0ms) rollback transaction
20295
+  (0.1ms) begin transaction
20296
+  (0.0ms) rollback transaction
20297
+  (0.0ms) begin transaction
20298
+  (0.0ms) rollback transaction
20299
+  (0.1ms) begin transaction
20300
+  (0.0ms) rollback transaction
20301
+  (0.0ms) begin transaction
20302
+  (0.0ms) rollback transaction
20303
+  (0.0ms) begin transaction
20304
+  (0.0ms) rollback transaction
20305
+  (0.0ms) begin transaction
20306
+  (0.0ms) rollback transaction
20307
+  (0.0ms) begin transaction
20308
+  (0.0ms) rollback transaction
20309
+  (0.0ms) begin transaction
20310
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'example' LIMIT 1
20311
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00], ["name", "example"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 13:48:51 UTC +00:00]]
20312
+  (106.4ms) rollback transaction
20313
+  (0.3ms) begin transaction
20314
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20315
+ SQL (2.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20316
+ Processing by Cullender::RulesController#index as HTML
20317
+ Rendered cullender/rules/index.html.erb within layouts/application (0.2ms)
20318
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
20319
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules"
20320
+  (0.8ms) rollback transaction
20321
+  (0.1ms) begin transaction
20322
+ Processing by Cullender::RulesController#new as HTML
20323
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
20324
+  (0.1ms) rollback transaction
20325
+  (0.1ms) begin transaction
20326
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20327
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20328
+ Processing by Cullender::RulesController#show as HTML
20329
+ Parameters: {"id"=>"1"}
20330
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20331
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
20332
+  (0.5ms) rollback transaction
20333
+  (0.1ms) begin transaction
20334
+  (0.2ms) SELECT COUNT(*) FROM "rules"
20335
+ Processing by Cullender::RulesController#create as HTML
20336
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20337
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20338
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20339
+ Redirected to http://test.host/events/rule
20340
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
20341
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20342
+  (0.4ms) rollback transaction
20343
+  (0.1ms) begin transaction
20344
+ Processing by Cullender::RulesController#create as HTML
20345
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20346
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20347
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20348
+ Redirected to http://test.host/events/rule
20349
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
20350
+  (0.4ms) rollback transaction
20351
+  (0.1ms) begin transaction
20352
+ Processing by Cullender::RulesController#create as HTML
20353
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20354
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20355
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20356
+ Redirected to http://test.host/events/rule
20357
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
20358
+  (0.5ms) rollback transaction
20359
+  (0.1ms) begin transaction
20360
+ Processing by Cullender::RulesController#create as HTML
20361
+ Parameters: {"rule"=>{"name"=>"asd"}}
20362
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
20363
+  (0.1ms) rollback transaction
20364
+  (0.1ms) begin transaction
20365
+ Processing by Cullender::RulesController#create as HTML
20366
+ Parameters: {"rule"=>{"name"=>"asd"}}
20367
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
20368
+  (0.1ms) rollback transaction
20369
+  (0.1ms) begin transaction
20370
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20371
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20372
+ Processing by Cullender::RulesController#update as HTML
20373
+ Parameters: {"rule"=>{"name"=>"New Name"}, "id"=>"1"}
20374
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20375
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20376
+  (0.7ms) rollback transaction
20377
+  (0.1ms) begin transaction
20378
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20379
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20380
+ Processing by Cullender::RulesController#update as HTML
20381
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20382
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20383
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20384
+ SQL (0.2ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["triggers", "--- {}\n"]]
20385
+ Redirected to http://test.host/events/rule
20386
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
20387
+  (0.7ms) rollback transaction
20388
+  (0.1ms) begin transaction
20389
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20390
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20391
+ Processing by Cullender::RulesController#update as HTML
20392
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20393
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20394
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20395
+ SQL (0.2ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["triggers", "--- {}\n"]]
20396
+ Redirected to http://test.host/events/rule
20397
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
20398
+  (0.6ms) rollback transaction
20399
+  (0.1ms) begin transaction
20400
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20401
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20402
+ Processing by Cullender::RulesController#update as HTML
20403
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20404
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20405
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
20406
+  (0.6ms) rollback transaction
20407
+  (0.1ms) begin transaction
20408
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20409
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20410
+ Processing by Cullender::RulesController#update as HTML
20411
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20412
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20413
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20414
+  (0.4ms) rollback transaction
20415
+  (0.1ms) begin transaction
20416
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20417
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20418
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20419
+ Processing by Cullender::RulesController#destroy as HTML
20420
+ Parameters: {"id"=>"1"}
20421
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20422
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20423
+ Redirected to http://test.host/events/rule
20424
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
20425
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20426
+  (0.6ms) rollback transaction
20427
+  (0.1ms) begin transaction
20428
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20429
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20430
+ Processing by Cullender::RulesController#destroy as HTML
20431
+ Parameters: {"id"=>"1"}
20432
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20433
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20434
+ Redirected to http://test.host/events/rule
20435
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
20436
+  (0.3ms) rollback transaction
20437
+  (0.1ms) begin transaction
20438
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20439
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:34 UTC +00:00]]
20440
+ Processing by Cullender::RulesController#destroy as HTML
20441
+ Parameters: {"id"=>"1"}
20442
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20443
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20444
+ Redirected to http://test.host/events/rule
20445
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
20446
+  (0.6ms) rollback transaction
20447
+  (0.1ms) begin transaction
20448
+  (0.1ms) rollback transaction
20449
+  (0.1ms) begin transaction
20450
+  (0.0ms) rollback transaction
20451
+  (0.0ms) begin transaction
20452
+  (0.0ms) rollback transaction
20453
+  (0.1ms) begin transaction
20454
+  (0.1ms) rollback transaction
20455
+  (0.1ms) begin transaction
20456
+  (0.1ms) rollback transaction
20457
+  (0.1ms) begin transaction
20458
+  (0.0ms) rollback transaction
20459
+  (0.1ms) begin transaction
20460
+  (0.0ms) rollback transaction
20461
+  (0.0ms) begin transaction
20462
+  (0.0ms) rollback transaction
20463
+  (0.1ms) begin transaction
20464
+  (0.0ms) rollback transaction
20465
+  (0.1ms) begin transaction
20466
+  (0.0ms) rollback transaction
20467
+  (0.0ms) begin transaction
20468
+  (0.0ms) rollback transaction
20469
+  (0.0ms) begin transaction
20470
+  (0.0ms) rollback transaction
20471
+  (0.0ms) begin transaction
20472
+  (0.0ms) rollback transaction
20473
+  (0.1ms) begin transaction
20474
+  (0.1ms) rollback transaction
20475
+  (0.1ms) begin transaction
20476
+  (0.1ms) rollback transaction
20477
+  (0.1ms) begin transaction
20478
+  (0.1ms) rollback transaction
20479
+  (0.1ms) begin transaction
20480
+  (0.0ms) rollback transaction
20481
+  (0.0ms) begin transaction
20482
+  (0.0ms) rollback transaction
20483
+  (0.1ms) begin transaction
20484
+  (0.0ms) rollback transaction
20485
+  (0.1ms) begin transaction
20486
+  (0.0ms) rollback transaction
20487
+  (0.0ms) begin transaction
20488
+  (0.0ms) rollback transaction
20489
+  (0.1ms) begin transaction
20490
+  (0.0ms) rollback transaction
20491
+  (0.1ms) begin transaction
20492
+  (0.0ms) rollback transaction
20493
+  (0.1ms) begin transaction
20494
+  (0.1ms) rollback transaction
20495
+  (0.1ms) begin transaction
20496
+  (0.1ms) rollback transaction
20497
+  (0.1ms) begin transaction
20498
+  (0.1ms) rollback transaction
20499
+  (0.1ms) begin transaction
20500
+  (0.1ms) rollback transaction
20501
+  (0.1ms) begin transaction
20502
+  (0.1ms) rollback transaction
20503
+  (0.1ms) begin transaction
20504
+  (0.1ms) rollback transaction
20505
+  (0.1ms) begin transaction
20506
+  (0.1ms) rollback transaction
20507
+  (0.1ms) begin transaction
20508
+  (0.1ms) rollback transaction
20509
+  (0.1ms) begin transaction
20510
+  (0.1ms) rollback transaction
20511
+  (0.1ms) begin transaction
20512
+  (0.1ms) rollback transaction
20513
+  (0.1ms) begin transaction
20514
+  (0.1ms) rollback transaction
20515
+  (0.1ms) begin transaction
20516
+  (0.1ms) rollback transaction
20517
+  (0.1ms) begin transaction
20518
+  (0.1ms) rollback transaction
20519
+  (0.1ms) begin transaction
20520
+  (0.1ms) rollback transaction
20521
+  (0.0ms) begin transaction
20522
+  (0.1ms) rollback transaction
20523
+  (0.1ms) begin transaction
20524
+  (0.1ms) rollback transaction
20525
+  (0.1ms) begin transaction
20526
+  (0.1ms) rollback transaction
20527
+  (0.1ms) begin transaction
20528
+  (0.1ms) rollback transaction
20529
+  (0.1ms) begin transaction
20530
+  (0.1ms) rollback transaction
20531
+  (0.1ms) begin transaction
20532
+  (0.1ms) rollback transaction
20533
+  (0.1ms) begin transaction
20534
+  (0.1ms) rollback transaction
20535
+  (0.1ms) begin transaction
20536
+  (0.1ms) rollback transaction
20537
+  (0.1ms) begin transaction
20538
+  (0.1ms) rollback transaction
20539
+  (0.1ms) begin transaction
20540
+  (0.1ms) rollback transaction
20541
+  (0.1ms) begin transaction
20542
+  (0.1ms) rollback transaction
20543
+  (0.1ms) begin transaction
20544
+  (0.1ms) rollback transaction
20545
+  (0.1ms) begin transaction
20546
+  (0.0ms) rollback transaction
20547
+  (0.1ms) begin transaction
20548
+  (0.0ms) rollback transaction
20549
+  (0.1ms) begin transaction
20550
+  (0.0ms) rollback transaction
20551
+  (0.1ms) begin transaction
20552
+  (0.0ms) rollback transaction
20553
+  (0.1ms) begin transaction
20554
+  (0.1ms) rollback transaction
20555
+  (0.1ms) begin transaction
20556
+  (0.0ms) rollback transaction
20557
+  (0.0ms) begin transaction
20558
+  (0.0ms) rollback transaction
20559
+  (0.1ms) begin transaction
20560
+  (0.0ms) rollback transaction
20561
+  (0.1ms) begin transaction
20562
+  (0.0ms) rollback transaction
20563
+  (0.1ms) begin transaction
20564
+  (0.0ms) rollback transaction
20565
+  (0.1ms) begin transaction
20566
+  (0.0ms) rollback transaction
20567
+  (0.0ms) begin transaction
20568
+  (0.0ms) rollback transaction
20569
+  (0.1ms) begin transaction
20570
+  (0.0ms) rollback transaction
20571
+  (0.0ms) begin transaction
20572
+  (0.0ms) rollback transaction
20573
+  (0.0ms) begin transaction
20574
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'example' LIMIT 1
20575
+ SQL (0.5ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:35:35 UTC +00:00], ["name", "example"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:35:35 UTC +00:00]]
20576
+  (0.6ms) rollback transaction
20577
+  (0.3ms) begin transaction
20578
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20579
+ SQL (2.6ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20580
+ Processing by Cullender::RulesController#index as HTML
20581
+ Rendered cullender/rules/index.html.erb within layouts/application (0.2ms)
20582
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)
20583
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules"
20584
+  (0.6ms) rollback transaction
20585
+  (0.1ms) begin transaction
20586
+ Processing by Cullender::RulesController#new as HTML
20587
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
20588
+  (0.1ms) rollback transaction
20589
+  (0.1ms) begin transaction
20590
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20591
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20592
+ Processing by Cullender::RulesController#show as HTML
20593
+ Parameters: {"id"=>"1"}
20594
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20595
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
20596
+  (0.6ms) rollback transaction
20597
+  (0.1ms) begin transaction
20598
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20599
+ Processing by Cullender::RulesController#create as HTML
20600
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20601
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20602
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20603
+ Redirected to http://test.host/events/rule
20604
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
20605
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20606
+  (0.4ms) rollback transaction
20607
+  (0.1ms) begin transaction
20608
+ Processing by Cullender::RulesController#create as HTML
20609
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20610
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20611
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20612
+ Redirected to http://test.host/events/rule
20613
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
20614
+  (0.5ms) rollback transaction
20615
+  (0.1ms) begin transaction
20616
+ Processing by Cullender::RulesController#create as HTML
20617
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20618
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20619
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20620
+ Redirected to http://test.host/events/rule
20621
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
20622
+  (0.6ms) rollback transaction
20623
+  (0.1ms) begin transaction
20624
+ Processing by Cullender::RulesController#create as HTML
20625
+ Parameters: {"rule"=>{"name"=>"asd"}}
20626
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
20627
+  (0.1ms) rollback transaction
20628
+  (0.1ms) begin transaction
20629
+ Processing by Cullender::RulesController#create as HTML
20630
+ Parameters: {"rule"=>{"name"=>"asd"}}
20631
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
20632
+  (0.1ms) rollback transaction
20633
+  (0.1ms) begin transaction
20634
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20635
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20636
+ Processing by Cullender::RulesController#update as HTML
20637
+ Parameters: {"rule"=>{"name"=>"New Name"}, "id"=>"1"}
20638
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20639
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
20640
+  (0.4ms) rollback transaction
20641
+  (0.1ms) begin transaction
20642
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20643
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20644
+ Processing by Cullender::RulesController#update as HTML
20645
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20646
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20647
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20648
+ SQL (0.2ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["triggers", "--- {}\n"]]
20649
+ Redirected to http://test.host/events/rule
20650
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
20651
+  (0.6ms) rollback transaction
20652
+  (0.1ms) begin transaction
20653
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20654
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20655
+ Processing by Cullender::RulesController#update as HTML
20656
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20657
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20658
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20659
+ SQL (0.1ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["triggers", "--- {}\n"]]
20660
+ Redirected to http://test.host/events/rule
20661
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
20662
+  (0.4ms) rollback transaction
20663
+  (0.1ms) begin transaction
20664
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20665
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20666
+ Processing by Cullender::RulesController#update as HTML
20667
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20668
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20669
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20670
+  (0.5ms) rollback transaction
20671
+  (0.1ms) begin transaction
20672
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20673
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20674
+ Processing by Cullender::RulesController#update as HTML
20675
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20676
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20677
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms)
20678
+  (0.6ms) rollback transaction
20679
+  (0.1ms) begin transaction
20680
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20681
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20682
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20683
+ Processing by Cullender::RulesController#destroy as HTML
20684
+ Parameters: {"id"=>"1"}
20685
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20686
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20687
+ Redirected to http://test.host/events/rule
20688
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
20689
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20690
+  (0.6ms) rollback transaction
20691
+  (0.1ms) begin transaction
20692
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20693
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20694
+ Processing by Cullender::RulesController#destroy as HTML
20695
+ Parameters: {"id"=>"1"}
20696
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20697
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20698
+ Redirected to http://test.host/events/rule
20699
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
20700
+  (0.4ms) rollback transaction
20701
+  (0.1ms) begin transaction
20702
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20703
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20704
+ Processing by Cullender::RulesController#destroy as HTML
20705
+ Parameters: {"id"=>"1"}
20706
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20707
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20708
+ Redirected to http://test.host/events/rule
20709
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
20710
+  (0.6ms) rollback transaction
20711
+  (0.1ms) begin transaction
20712
+  (0.1ms) rollback transaction
20713
+  (0.1ms) begin transaction
20714
+  (0.1ms) rollback transaction
20715
+  (0.1ms) begin transaction
20716
+  (0.1ms) rollback transaction
20717
+  (0.1ms) begin transaction
20718
+  (0.1ms) rollback transaction
20719
+  (0.1ms) begin transaction
20720
+  (0.1ms) rollback transaction
20721
+  (0.0ms) begin transaction
20722
+  (0.1ms) rollback transaction
20723
+  (0.0ms) begin transaction
20724
+  (0.0ms) rollback transaction
20725
+  (0.0ms) begin transaction
20726
+  (0.0ms) rollback transaction
20727
+  (0.0ms) begin transaction
20728
+  (0.1ms) rollback transaction
20729
+  (0.1ms) begin transaction
20730
+  (0.0ms) rollback transaction
20731
+  (0.1ms) begin transaction
20732
+  (0.0ms) rollback transaction
20733
+  (0.0ms) begin transaction
20734
+  (0.1ms) rollback transaction
20735
+  (0.1ms) begin transaction
20736
+  (0.1ms) rollback transaction
20737
+  (0.1ms) begin transaction
20738
+  (0.1ms) rollback transaction
20739
+  (0.1ms) begin transaction
20740
+  (0.0ms) rollback transaction
20741
+  (0.0ms) begin transaction
20742
+  (0.0ms) rollback transaction
20743
+  (0.0ms) begin transaction
20744
+  (0.0ms) rollback transaction
20745
+  (0.0ms) begin transaction
20746
+  (0.0ms) rollback transaction
20747
+  (0.0ms) begin transaction
20748
+  (0.0ms) rollback transaction
20749
+  (0.0ms) begin transaction
20750
+  (0.0ms) rollback transaction
20751
+  (0.0ms) begin transaction
20752
+  (0.0ms) rollback transaction
20753
+  (0.0ms) begin transaction
20754
+  (0.0ms) rollback transaction
20755
+  (0.0ms) begin transaction
20756
+  (0.0ms) rollback transaction
20757
+  (0.1ms) begin transaction
20758
+  (0.1ms) rollback transaction
20759
+  (0.1ms) begin transaction
20760
+  (0.1ms) rollback transaction
20761
+  (0.1ms) begin transaction
20762
+  (0.1ms) rollback transaction
20763
+  (0.1ms) begin transaction
20764
+  (0.1ms) rollback transaction
20765
+  (0.1ms) begin transaction
20766
+  (0.1ms) rollback transaction
20767
+  (0.1ms) begin transaction
20768
+  (0.1ms) rollback transaction
20769
+  (0.1ms) begin transaction
20770
+  (0.1ms) rollback transaction
20771
+  (0.1ms) begin transaction
20772
+  (0.1ms) rollback transaction
20773
+  (0.1ms) begin transaction
20774
+  (0.1ms) rollback transaction
20775
+  (0.1ms) begin transaction
20776
+  (0.1ms) rollback transaction
20777
+  (0.1ms) begin transaction
20778
+  (0.1ms) rollback transaction
20779
+  (0.1ms) begin transaction
20780
+  (0.1ms) rollback transaction
20781
+  (0.1ms) begin transaction
20782
+  (0.1ms) rollback transaction
20783
+  (0.1ms) begin transaction
20784
+  (0.1ms) rollback transaction
20785
+  (0.0ms) begin transaction
20786
+  (0.1ms) rollback transaction
20787
+  (0.1ms) begin transaction
20788
+  (0.1ms) rollback transaction
20789
+  (0.1ms) begin transaction
20790
+  (0.1ms) rollback transaction
20791
+  (0.1ms) begin transaction
20792
+  (0.1ms) rollback transaction
20793
+  (0.1ms) begin transaction
20794
+  (0.1ms) rollback transaction
20795
+  (0.1ms) begin transaction
20796
+  (0.1ms) rollback transaction
20797
+  (0.1ms) begin transaction
20798
+  (0.1ms) rollback transaction
20799
+  (0.1ms) begin transaction
20800
+  (0.1ms) rollback transaction
20801
+  (0.1ms) begin transaction
20802
+  (0.1ms) rollback transaction
20803
+  (0.1ms) begin transaction
20804
+  (0.1ms) rollback transaction
20805
+  (0.1ms) begin transaction
20806
+  (0.1ms) rollback transaction
20807
+  (0.1ms) begin transaction
20808
+  (0.1ms) rollback transaction
20809
+  (0.1ms) begin transaction
20810
+  (0.0ms) rollback transaction
20811
+  (0.1ms) begin transaction
20812
+  (0.0ms) rollback transaction
20813
+  (0.1ms) begin transaction
20814
+  (0.1ms) rollback transaction
20815
+  (0.1ms) begin transaction
20816
+  (0.0ms) rollback transaction
20817
+  (0.0ms) begin transaction
20818
+  (0.0ms) rollback transaction
20819
+  (0.0ms) begin transaction
20820
+  (0.0ms) rollback transaction
20821
+  (0.0ms) begin transaction
20822
+  (0.0ms) rollback transaction
20823
+  (0.0ms) begin transaction
20824
+  (0.0ms) rollback transaction
20825
+  (0.0ms) begin transaction
20826
+  (0.0ms) rollback transaction
20827
+  (0.0ms) begin transaction
20828
+  (0.0ms) rollback transaction
20829
+  (0.1ms) begin transaction
20830
+  (0.0ms) rollback transaction
20831
+  (0.0ms) begin transaction
20832
+  (0.0ms) rollback transaction
20833
+  (0.0ms) begin transaction
20834
+  (0.0ms) rollback transaction
20835
+  (0.0ms) begin transaction
20836
+  (0.0ms) rollback transaction
20837
+  (0.0ms) begin transaction
20838
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'example' LIMIT 1
20839
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00], ["name", "example"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:37:29 UTC +00:00]]
20840
+  (0.5ms) rollback transaction
20841
+  (0.3ms) begin transaction
20842
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20843
+ SQL (2.5ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20844
+ Processing by Cullender::RulesController#index as HTML
20845
+ Rendered cullender/rules/index.html.erb within layouts/application (0.3ms)
20846
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
20847
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules"
20848
+  (0.6ms) rollback transaction
20849
+  (0.1ms) begin transaction
20850
+ Processing by Cullender::RulesController#new as HTML
20851
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
20852
+  (0.1ms) rollback transaction
20853
+  (0.1ms) begin transaction
20854
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20855
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20856
+ Processing by Cullender::RulesController#show as HTML
20857
+ Parameters: {"id"=>"1"}
20858
+ Cullender::Rule Load (0.2ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20859
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms)
20860
+  (0.6ms) rollback transaction
20861
+  (0.1ms) begin transaction
20862
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20863
+ Processing by Cullender::RulesController#create as HTML
20864
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20865
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20866
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20867
+ Redirected to http://test.host/events/rule
20868
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
20869
+  (0.1ms) SELECT COUNT(*) FROM "rules"
20870
+  (0.5ms) rollback transaction
20871
+  (0.1ms) begin transaction
20872
+ Processing by Cullender::RulesController#create as HTML
20873
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20874
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20875
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20876
+ Redirected to http://test.host/events/rule
20877
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
20878
+  (0.6ms) rollback transaction
20879
+  (0.1ms) begin transaction
20880
+ Processing by Cullender::RulesController#create as HTML
20881
+ Parameters: {"rule"=>{"name"=>"MyRule"}}
20882
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20883
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20884
+ Redirected to http://test.host/events/rule
20885
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
20886
+  (0.4ms) rollback transaction
20887
+  (0.2ms) begin transaction
20888
+ Processing by Cullender::RulesController#create as HTML
20889
+ Parameters: {"rule"=>{"name"=>"asd"}}
20890
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
20891
+  (0.1ms) rollback transaction
20892
+  (0.1ms) begin transaction
20893
+ Processing by Cullender::RulesController#create as HTML
20894
+ Parameters: {"rule"=>{"name"=>"asd"}}
20895
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
20896
+  (0.1ms) rollback transaction
20897
+  (0.1ms) begin transaction
20898
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20899
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20900
+ Processing by Cullender::RulesController#update as HTML
20901
+ Parameters: {"rule"=>{"name"=>"New Name"}, "id"=>"1"}
20902
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20903
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20904
+  (0.6ms) rollback transaction
20905
+  (0.1ms) begin transaction
20906
+ Cullender::Rule Exists (0.3ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20907
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20908
+ Processing by Cullender::RulesController#update as HTML
20909
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20910
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20911
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20912
+ SQL (0.2ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["triggers", "--- {}\n"]]
20913
+ Redirected to http://test.host/events/rule
20914
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
20915
+  (0.6ms) rollback transaction
20916
+  (0.1ms) begin transaction
20917
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20918
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20919
+ Processing by Cullender::RulesController#update as HTML
20920
+ Parameters: {"rule"=>{"name"=>"MyRule"}, "id"=>"1"}
20921
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20922
+ Cullender::Rule Exists (0.1ms) SELECT 1 AS one FROM "rules" WHERE ("rules"."name" = 'MyRule' AND "rules"."id" != 1) LIMIT 1
20923
+ SQL (0.1ms) UPDATE "rules" SET "updated_at" = ?, "triggers" = ? WHERE "rules"."id" = 1 [["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["triggers", "--- {}\n"]]
20924
+ Redirected to http://test.host/events/rule
20925
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
20926
+  (0.5ms) rollback transaction
20927
+  (0.1ms) begin transaction
20928
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20929
+ SQL (0.3ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20930
+ Processing by Cullender::RulesController#update as HTML
20931
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20932
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20933
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20934
+  (0.4ms) rollback transaction
20935
+  (0.1ms) begin transaction
20936
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20937
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20938
+ Processing by Cullender::RulesController#update as HTML
20939
+ Parameters: {"rule"=>{"name"=>"asd"}, "id"=>"1"}
20940
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20941
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
20942
+  (18.3ms) rollback transaction
20943
+  (0.1ms) begin transaction
20944
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20945
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20946
+  (0.2ms) SELECT COUNT(*) FROM "rules"
20947
+ Processing by Cullender::RulesController#destroy as HTML
20948
+ Parameters: {"id"=>"1"}
20949
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20950
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20951
+ Redirected to http://test.host/events/rule
20952
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
20953
+  (0.3ms) SELECT COUNT(*) FROM "rules"
20954
+  (0.5ms) rollback transaction
20955
+  (0.1ms) begin transaction
20956
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20957
+ SQL (0.5ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20958
+ Processing by Cullender::RulesController#destroy as HTML
20959
+ Parameters: {"id"=>"1"}
20960
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20961
+ SQL (0.2ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20962
+ Redirected to http://test.host/events/rule
20963
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
20964
+  (0.5ms) rollback transaction
20965
+  (0.1ms) begin transaction
20966
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'MyRule' LIMIT 1
20967
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00], ["name", "MyRule"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:02 UTC +00:00]]
20968
+ Processing by Cullender::RulesController#destroy as HTML
20969
+ Parameters: {"id"=>"1"}
20970
+ Cullender::Rule Load (0.1ms) SELECT "rules".* FROM "rules" WHERE "rules"."id" = ? LIMIT 1 [["id", "1"]]
20971
+ SQL (0.1ms) DELETE FROM "rules" WHERE "rules"."id" = ? [["id", 1]]
20972
+ Redirected to http://test.host/events/rule
20973
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
20974
+  (0.7ms) rollback transaction
20975
+  (0.1ms) begin transaction
20976
+  (0.1ms) rollback transaction
20977
+  (0.1ms) begin transaction
20978
+  (0.1ms) rollback transaction
20979
+  (0.1ms) begin transaction
20980
+  (0.0ms) rollback transaction
20981
+  (0.1ms) begin transaction
20982
+  (0.1ms) rollback transaction
20983
+  (0.1ms) begin transaction
20984
+  (0.0ms) rollback transaction
20985
+  (0.1ms) begin transaction
20986
+  (0.0ms) rollback transaction
20987
+  (0.0ms) begin transaction
20988
+  (0.0ms) rollback transaction
20989
+  (0.0ms) begin transaction
20990
+  (0.0ms) rollback transaction
20991
+  (0.1ms) begin transaction
20992
+  (0.1ms) rollback transaction
20993
+  (0.1ms) begin transaction
20994
+  (0.1ms) rollback transaction
20995
+  (0.0ms) begin transaction
20996
+  (0.0ms) rollback transaction
20997
+  (0.0ms) begin transaction
20998
+  (0.0ms) rollback transaction
20999
+  (0.0ms) begin transaction
21000
+  (0.0ms) rollback transaction
21001
+  (0.1ms) begin transaction
21002
+  (0.0ms) rollback transaction
21003
+  (0.1ms) begin transaction
21004
+  (0.0ms) rollback transaction
21005
+  (0.0ms) begin transaction
21006
+  (0.0ms) rollback transaction
21007
+  (0.1ms) begin transaction
21008
+  (0.0ms) rollback transaction
21009
+  (0.0ms) begin transaction
21010
+  (0.0ms) rollback transaction
21011
+  (0.0ms) begin transaction
21012
+  (0.1ms) rollback transaction
21013
+  (0.1ms) begin transaction
21014
+  (0.1ms) rollback transaction
21015
+  (0.1ms) begin transaction
21016
+  (0.1ms) rollback transaction
21017
+  (0.1ms) begin transaction
21018
+  (0.0ms) rollback transaction
21019
+  (0.1ms) begin transaction
21020
+  (0.0ms) rollback transaction
21021
+  (0.1ms) begin transaction
21022
+  (0.1ms) rollback transaction
21023
+  (0.1ms) begin transaction
21024
+  (0.1ms) rollback transaction
21025
+  (0.1ms) begin transaction
21026
+  (0.1ms) rollback transaction
21027
+  (0.1ms) begin transaction
21028
+  (0.1ms) rollback transaction
21029
+  (0.1ms) begin transaction
21030
+  (0.1ms) rollback transaction
21031
+  (0.1ms) begin transaction
21032
+  (0.1ms) rollback transaction
21033
+  (0.1ms) begin transaction
21034
+  (0.1ms) rollback transaction
21035
+  (0.1ms) begin transaction
21036
+  (0.1ms) rollback transaction
21037
+  (0.1ms) begin transaction
21038
+  (0.1ms) rollback transaction
21039
+  (0.1ms) begin transaction
21040
+  (0.1ms) rollback transaction
21041
+  (0.1ms) begin transaction
21042
+  (0.1ms) rollback transaction
21043
+  (0.1ms) begin transaction
21044
+  (0.1ms) rollback transaction
21045
+  (0.1ms) begin transaction
21046
+  (0.1ms) rollback transaction
21047
+  (0.1ms) begin transaction
21048
+  (0.1ms) rollback transaction
21049
+  (0.1ms) begin transaction
21050
+  (0.1ms) rollback transaction
21051
+  (0.1ms) begin transaction
21052
+  (0.1ms) rollback transaction
21053
+  (0.1ms) begin transaction
21054
+  (0.1ms) rollback transaction
21055
+  (0.1ms) begin transaction
21056
+  (0.1ms) rollback transaction
21057
+  (0.1ms) begin transaction
21058
+  (0.1ms) rollback transaction
21059
+  (0.1ms) begin transaction
21060
+  (0.1ms) rollback transaction
21061
+  (0.1ms) begin transaction
21062
+  (0.1ms) rollback transaction
21063
+  (0.1ms) begin transaction
21064
+  (0.1ms) rollback transaction
21065
+  (0.1ms) begin transaction
21066
+  (0.1ms) rollback transaction
21067
+  (0.1ms) begin transaction
21068
+  (0.1ms) rollback transaction
21069
+  (0.1ms) begin transaction
21070
+  (0.1ms) rollback transaction
21071
+  (0.1ms) begin transaction
21072
+  (0.0ms) rollback transaction
21073
+  (0.1ms) begin transaction
21074
+  (0.0ms) rollback transaction
21075
+  (0.1ms) begin transaction
21076
+  (0.0ms) rollback transaction
21077
+  (0.1ms) begin transaction
21078
+  (0.0ms) rollback transaction
21079
+  (0.1ms) begin transaction
21080
+  (0.0ms) rollback transaction
21081
+  (0.0ms) begin transaction
21082
+  (0.0ms) rollback transaction
21083
+  (0.1ms) begin transaction
21084
+  (0.0ms) rollback transaction
21085
+  (0.0ms) begin transaction
21086
+  (0.0ms) rollback transaction
21087
+  (0.0ms) begin transaction
21088
+  (0.0ms) rollback transaction
21089
+  (0.0ms) begin transaction
21090
+  (0.0ms) rollback transaction
21091
+  (0.0ms) begin transaction
21092
+  (0.0ms) rollback transaction
21093
+  (0.0ms) begin transaction
21094
+  (0.0ms) rollback transaction
21095
+  (0.0ms) begin transaction
21096
+  (0.0ms) rollback transaction
21097
+  (0.0ms) begin transaction
21098
+  (0.0ms) rollback transaction
21099
+  (0.0ms) begin transaction
21100
+  (0.0ms) rollback transaction
21101
+  (0.0ms) begin transaction
21102
+ Cullender::Rule Exists (0.2ms) SELECT 1 AS one FROM "rules" WHERE "rules"."name" = 'example' LIMIT 1
21103
+ SQL (0.4ms) INSERT INTO "rules" ("created_at", "name", "triggers", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 02 Nov 2013 14:42:03 UTC +00:00], ["name", "example"], ["triggers", "--- {}\n"], ["updated_at", Sat, 02 Nov 2013 14:42:03 UTC +00:00]]
21104
+  (0.5ms) rollback transaction