ominous 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTA0NTllMzNjM2Q2MTZkNTFlYmRiNGI1N2FlMGY4Mzc3MmI1ZTVjZg==
4
+ ZWJiMjUxMWIxOWY5NzIwNzRjODQ1NzZhZDJiZDVjN2E3ZmZjNTViMA==
5
5
  data.tar.gz: !binary |-
6
- YTM1NDAxOGUwMmU4ZTA3YzhkM2NiNzBlZjQ1NTdlYmY2YzFhNDhhMA==
6
+ M2YyYThhMjcxMzVmYjIxNDhkMmMxZmZhMGUzNDk0NGI3ZGRmM2NjMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTc4MGQ0OWY1NzY1NmJjZmIwMTYzNDdkNDBlMDg4NTA5ZDdlNWJmNjcxOTZj
10
- Mzk5Zjk5ZDAxYzNmZmNjY2JjYjU1N2VjZjIxYjRlY2ZlMmE0ZjMxMDg0MWY4
11
- YjkyYmIxMWQ2NTgzZTAyN2UyMzU5MmU3ZjhlZTMyZDNjMTE3OTg=
9
+ MDZjZDg1MjkzNDFjMDdkZjEwZDA2Yzg0ZGQzYmQ0YTNkZmEyZTg5NWZjMGFh
10
+ ZjMyMTdkZDUwYWM3ZjZlNzgzMjU3MmRiZGExNGMwZTQwMGM5NDBlNTgzMDcx
11
+ ZGJkY2FkYTgzYmVmNTU5Yjc3NWI5MzQwMTUwZjM5YWMxYzdiZjM=
12
12
  data.tar.gz: !binary |-
13
- MmQyODU0OTMyMDk4NzlhOTA1MDZhZTYzMmY4Zjk0OTg1NTczYmI3MGRjMjBj
14
- ZjE3OTM0ZDhkZGZkODhmYzM3MmU4NTEzNTMzMDc2NmU3YjBjYTQ4ODNlYjJj
15
- YzBlOGFiODdhYmY2MjlkNTA3ZjI0MDMwMmM4OWYyMDIyNzIxMDg=
13
+ OTMzYzg0ZDE4NzM2YjI3NWM4NzU1OTExMTkxZWEzNzljMzBmYjVlNmEyYjky
14
+ NjA2MjM1OGNlYzM1ZjExNDkzNDkzMzU3NGVkMWUxNDg4Njg5MjYxYzM5Y2My
15
+ MWQ0MWJjNzVmMmJlZGY1N2VhMWYyNDY2NGVjZjkzNGI4YWQ5ZmY=
@@ -12,6 +12,10 @@ Add this to your routes to mount the engine within your application:
12
12
 
13
13
  mount Ominous::Engine => "/ominous"
14
14
 
15
+ Also ensure that you have root path defined in your routes:
16
+
17
+ root to: 'some_controller#index'
18
+
15
19
  Some ominous functionality is provided by JavaScript. To enable this, you
16
20
  need to add this to your app/assets/javascripts/application.js
17
21
 
@@ -19,7 +19,7 @@ module Ominous
19
19
 
20
20
  def ominous_closer_url(warning, closer)
21
21
  if closer.closure_method == 'close_and_dismiss_warning'
22
- ominous.dismiss_warning_url(warning)
22
+ File.join(main_app.root_url, ominous.dismiss_warning_path(warning))
23
23
  else
24
24
  return closer.url
25
25
  end
@@ -1,10 +1,14 @@
1
1
  module Ominous
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
7
  #
8
+ # 0.1.3
9
+ # -----
10
+ # Better fix for close_and_dismiss_warning closure url when app hosted in sub-uri
11
+ #
8
12
  # 0.1.2
9
13
  # -----
10
14
  # Fixes bug where close_and_dismiss_warning closure url was relative to root ('/')
Binary file
@@ -32561,3 +32561,2199 @@ Processing by ThingsController#index as HTML
32561
32561
  Thing Load (0.2ms) SELECT "things".* FROM "things"
32562
32562
  Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
32563
32563
   (0.1ms) rollback transaction
32564
+ Connecting to database specified by database.yml
32565
+  (47.6ms) begin transaction
32566
+ Fixture Delete (5.0ms) DELETE FROM "ominous_warnings"
32567
+ Fixture Insert (1.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:30:43', '2014-08-26 10:30:43')
32568
+ Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:30:43', '2014-08-26 10:30:43')
32569
+ Fixture Delete (0.8ms) DELETE FROM "ominous_warning_closers"
32570
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:30:43', '2014-08-26 10:30:43', 980190962)
32571
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:30:43', '2014-08-26 10:30:43', 298486374)
32572
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:30:43', '2014-08-26 10:30:43', 113629430)
32573
+ Fixture Delete (1.4ms) DELETE FROM "ominous_closers"
32574
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:30:43', '2014-08-26 10:30:43')
32575
+ Fixture Insert (0.6ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:30:43', '2014-08-26 10:30:43')
32576
+ Fixture Delete (0.6ms) DELETE FROM "things"
32577
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:30:43', '2014-08-26 10:30:43')
32578
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:30:43', '2014-08-26 10:30:43')
32579
+  (127.9ms) commit transaction
32580
+  (0.2ms) begin transaction
32581
+ Ominous::Warning Load (15.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32582
+ Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32583
+  (0.1ms) SAVEPOINT active_record_1
32584
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
32585
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32586
+  (0.1ms) rollback transaction
32587
+  (0.0ms) begin transaction
32588
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32589
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32590
+  (0.1ms) SAVEPOINT active_record_1
32591
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32592
+  (0.1ms) SAVEPOINT active_record_1
32593
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32594
+  (0.0ms) SAVEPOINT active_record_1
32595
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32596
+  (0.1ms) rollback transaction
32597
+  (0.0ms) begin transaction
32598
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32599
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32600
+  (0.1ms) SAVEPOINT active_record_1
32601
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32602
+  (0.2ms) rollback transaction
32603
+  (0.0ms) begin transaction
32604
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32605
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32606
+ Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
32607
+  (0.1ms) rollback transaction
32608
+  (0.1ms) begin transaction
32609
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32610
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32611
+  (0.1ms) rollback transaction
32612
+  (0.0ms) begin transaction
32613
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32614
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32615
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
32616
+  (0.1ms) rollback transaction
32617
+  (0.1ms) begin transaction
32618
+ Ominous::Warning Load (2.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32619
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32620
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32621
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
32622
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32623
+ Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
32624
+  (0.1ms) SAVEPOINT active_record_1
32625
+ SQL (1.2ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
32626
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
32627
+  (0.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:30:43.666832' WHERE "ominous_warning_closers"."id" = 298486374
32628
+  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
32629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32630
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32631
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32632
+  (0.8ms) rollback transaction
32633
+  (0.0ms) begin transaction
32634
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32635
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32636
+  (0.0ms) rollback transaction
32637
+  (0.0ms) begin transaction
32638
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32639
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32640
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32641
+  (0.0ms) rollback transaction
32642
+  (0.0ms) begin transaction
32643
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32644
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32645
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
32646
+  (0.1ms) rollback transaction
32647
+  (0.1ms) begin transaction
32648
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32649
+ Processing by Ominous::WarningsController#dismiss as HTML
32650
+ Parameters: {"id"=>"1"}
32651
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
32652
+ Rendered text template (0.0ms)
32653
+ Completed 200 OK in 34ms (Views: 32.2ms | ActiveRecord: 0.1ms)
32654
+  (0.2ms) rollback transaction
32655
+  (0.1ms) begin transaction
32656
+ Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32657
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32658
+  (0.1ms) SAVEPOINT active_record_1
32659
+  (1.4ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:30:43.784275' WHERE "ominous_closers"."id" = 1
32660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32661
+  (1.0ms) rollback transaction
32662
+  (0.1ms) begin transaction
32663
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32664
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32665
+  (0.1ms) SAVEPOINT active_record_1
32666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32667
+  (0.1ms) rollback transaction
32668
+  (0.1ms) begin transaction
32669
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32670
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32671
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
32672
+  (0.1ms) rollback transaction
32673
+  (0.0ms) begin transaction
32674
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32675
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32676
+  (0.2ms) rollback transaction
32677
+  (0.0ms) begin transaction
32678
+  (0.0ms) rollback transaction
32679
+  (0.1ms) begin transaction
32680
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32681
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32682
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32683
+  (0.1ms) SELECT COUNT(*) FROM "things" 
32684
+ Processing by ThingsController#create as HTML
32685
+ Parameters: {"thing"=>{"name"=>"Foo"}}
32686
+  (0.1ms) SAVEPOINT active_record_1
32687
+ SQL (1.7ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:30:43 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:30:43 UTC +00:00]]
32688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32689
+ Redirected to http://test.host/things/3
32690
+ Completed 302 Found in 8ms (ActiveRecord: 1.9ms)
32691
+  (0.1ms) SELECT COUNT(*) FROM "things" 
32692
+  (1.1ms) rollback transaction
32693
+  (0.1ms) begin transaction
32694
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32695
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32696
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32697
+  (0.1ms) SELECT COUNT(*) FROM "things" 
32698
+ Processing by ThingsController#destroy as HTML
32699
+ Parameters: {"id"=>"1"}
32700
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32701
+  (0.1ms) SAVEPOINT active_record_1
32702
+ SQL (0.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
32703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32704
+ Redirected to http://test.host/things
32705
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
32706
+  (0.1ms) SELECT COUNT(*) FROM "things"
32707
+  (0.4ms) rollback transaction
32708
+  (0.0ms) begin transaction
32709
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32710
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32711
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32712
+ Processing by ThingsController#edit as HTML
32713
+ Parameters: {"id"=>"1"}
32714
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32715
+ Rendered things/_form.html.erb (2.6ms)
32716
+ Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.1ms)
32717
+  (0.1ms) rollback transaction
32718
+  (3.5ms) begin transaction
32719
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32720
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32721
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32722
+ Processing by ThingsController#index as HTML
32723
+ Thing Load (0.2ms) SELECT "things".* FROM "things"
32724
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.2ms)
32725
+  (0.1ms) rollback transaction
32726
+  (0.1ms) begin transaction
32727
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32728
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32729
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32730
+ Processing by ThingsController#new as HTML
32731
+ Rendered things/_form.html.erb (2.5ms)
32732
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
32733
+  (0.2ms) rollback transaction
32734
+  (0.1ms) begin transaction
32735
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32736
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32737
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32738
+ Processing by ThingsController#show as HTML
32739
+ Parameters: {"id"=>"1"}
32740
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32741
+ Ominous::Warning Load (14.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32742
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32743
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (30.0ms)
32744
+ Completed 200 OK in 50ms (Views: 34.1ms | ActiveRecord: 14.3ms)
32745
+  (0.1ms) rollback transaction
32746
+  (0.0ms) begin transaction
32747
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32748
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32749
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32750
+ Processing by ThingsController#show as HTML
32751
+ Parameters: {"id"=>"1"}
32752
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32753
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
32754
+  (0.1ms) rollback transaction
32755
+  (0.0ms) begin transaction
32756
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32757
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32758
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32759
+ Processing by ThingsController#show as HTML
32760
+ Parameters: {"id"=>"2"}
32761
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
32762
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32763
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32764
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32765
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (1.9ms)
32766
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
32767
+  (0.1ms) rollback transaction
32768
+  (0.0ms) begin transaction
32769
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32770
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32771
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32772
+ Processing by ThingsController#show as HTML
32773
+ Parameters: {"id"=>"1"}
32774
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32775
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
32776
+  (0.2ms) rollback transaction
32777
+  (0.1ms) begin transaction
32778
+ Thing Load (0.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32779
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32780
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32781
+ Processing by ThingsController#show as HTML
32782
+ Parameters: {"id"=>"2"}
32783
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
32784
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32785
+ Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms)
32786
+  (0.1ms) rollback transaction
32787
+  (0.1ms) begin transaction
32788
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32789
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32790
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32791
+ Processing by ThingsController#update as HTML
32792
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
32793
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32794
+  (0.1ms) SAVEPOINT active_record_1
32795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32796
+ Redirected to http://test.host/things/1
32797
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
32798
+  (0.1ms) rollback transaction
32799
+  (0.1ms) begin transaction
32800
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32801
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32802
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32803
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32804
+ Processing by ThingsController#index as HTML
32805
+ Thing Load (0.2ms) SELECT "things".* FROM "things"
32806
+ Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
32807
+  (0.1ms) rollback transaction
32808
+ Connecting to database specified by database.yml
32809
+  (13.1ms) begin transaction
32810
+ Fixture Delete (5.3ms) DELETE FROM "ominous_warnings"
32811
+ Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:32:19', '2014-08-26 10:32:19')
32812
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:32:19', '2014-08-26 10:32:19')
32813
+ Fixture Delete (1.8ms) DELETE FROM "ominous_warning_closers"
32814
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:32:19', '2014-08-26 10:32:19', 980190962)
32815
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:32:19', '2014-08-26 10:32:19', 298486374)
32816
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:32:19', '2014-08-26 10:32:19', 113629430)
32817
+ Fixture Delete (0.8ms) DELETE FROM "ominous_closers"
32818
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:32:19', '2014-08-26 10:32:19')
32819
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:32:19', '2014-08-26 10:32:19')
32820
+ Fixture Delete (0.6ms) DELETE FROM "things"
32821
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:32:19', '2014-08-26 10:32:19')
32822
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:32:19', '2014-08-26 10:32:19')
32823
+  (133.5ms) commit transaction
32824
+  (0.1ms) begin transaction
32825
+ Ominous::Warning Load (7.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32826
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32827
+  (0.1ms) SAVEPOINT active_record_1
32828
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
32829
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32830
+  (0.1ms) rollback transaction
32831
+  (0.0ms) begin transaction
32832
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32833
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32834
+  (0.1ms) SAVEPOINT active_record_1
32835
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32836
+  (0.1ms) SAVEPOINT active_record_1
32837
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32838
+  (0.1ms) SAVEPOINT active_record_1
32839
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32840
+  (0.1ms) rollback transaction
32841
+  (0.0ms) begin transaction
32842
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32843
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32844
+  (0.1ms) SAVEPOINT active_record_1
32845
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32846
+  (0.2ms) rollback transaction
32847
+  (0.0ms) begin transaction
32848
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32849
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32850
+ Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
32851
+  (0.1ms) rollback transaction
32852
+  (0.1ms) begin transaction
32853
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32854
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32855
+  (0.1ms) rollback transaction
32856
+  (0.0ms) begin transaction
32857
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32858
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32859
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
32860
+  (0.1ms) rollback transaction
32861
+  (0.0ms) begin transaction
32862
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32863
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32864
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32865
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
32866
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32867
+ Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
32868
+  (0.0ms) SAVEPOINT active_record_1
32869
+ SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
32870
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
32871
+  (0.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:32:20.159744' WHERE "ominous_warning_closers"."id" = 298486374
32872
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
32873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32874
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32875
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32876
+  (0.6ms) rollback transaction
32877
+  (0.1ms) begin transaction
32878
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32879
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32880
+  (0.0ms) rollback transaction
32881
+  (0.0ms) begin transaction
32882
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32883
+ Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32884
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32885
+  (0.1ms) rollback transaction
32886
+  (0.0ms) begin transaction
32887
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32888
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
32889
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
32890
+  (0.1ms) rollback transaction
32891
+  (0.1ms) begin transaction
32892
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32893
+ Processing by Ominous::WarningsController#dismiss as HTML
32894
+ Parameters: {"id"=>"1"}
32895
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
32896
+ Rendered text template (0.0ms)
32897
+ Completed 200 OK in 60ms (Views: 57.5ms | ActiveRecord: 0.1ms)
32898
+  (0.1ms) rollback transaction
32899
+  (0.1ms) begin transaction
32900
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32901
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32902
+  (0.1ms) SAVEPOINT active_record_1
32903
+  (1.5ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:32:20.276500' WHERE "ominous_closers"."id" = 1
32904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
32905
+  (0.7ms) rollback transaction
32906
+  (0.0ms) begin transaction
32907
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32908
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32909
+  (0.0ms) SAVEPOINT active_record_1
32910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32911
+  (0.1ms) rollback transaction
32912
+  (0.0ms) begin transaction
32913
+ Ominous::Warning Load (0.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32914
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32915
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
32916
+  (0.1ms) rollback transaction
32917
+  (0.0ms) begin transaction
32918
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32919
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
32920
+  (0.1ms) rollback transaction
32921
+  (0.0ms) begin transaction
32922
+  (0.0ms) rollback transaction
32923
+  (0.1ms) begin transaction
32924
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32925
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32926
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32927
+  (0.2ms) SELECT COUNT(*) FROM "things" 
32928
+ Processing by ThingsController#create as HTML
32929
+ Parameters: {"thing"=>{"name"=>"Foo"}}
32930
+  (0.1ms) SAVEPOINT active_record_1
32931
+ SQL (1.0ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:32:20 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:32:20 UTC +00:00]]
32932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32933
+ Redirected to http://test.host/things/3
32934
+ Completed 302 Found in 20ms (ActiveRecord: 1.2ms)
32935
+  (0.1ms) SELECT COUNT(*) FROM "things" 
32936
+  (4.9ms) rollback transaction
32937
+  (0.1ms) begin transaction
32938
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32939
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32940
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32941
+  (0.1ms) SELECT COUNT(*) FROM "things" 
32942
+ Processing by ThingsController#destroy as HTML
32943
+ Parameters: {"id"=>"1"}
32944
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32945
+  (0.1ms) SAVEPOINT active_record_1
32946
+ SQL (0.6ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
32947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
32948
+ Redirected to http://test.host/things
32949
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
32950
+  (0.1ms) SELECT COUNT(*) FROM "things"
32951
+  (0.5ms) rollback transaction
32952
+  (0.0ms) begin transaction
32953
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32954
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32955
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32956
+ Processing by ThingsController#edit as HTML
32957
+ Parameters: {"id"=>"1"}
32958
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32959
+ Rendered things/_form.html.erb (16.0ms)
32960
+ Completed 200 OK in 32ms (Views: 30.3ms | ActiveRecord: 0.3ms)
32961
+  (0.1ms) rollback transaction
32962
+  (0.0ms) begin transaction
32963
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32964
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32965
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32966
+ Processing by ThingsController#index as HTML
32967
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
32968
+ Completed 200 OK in 61ms (Views: 60.0ms | ActiveRecord: 0.1ms)
32969
+  (0.1ms) rollback transaction
32970
+  (0.0ms) begin transaction
32971
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32972
+ Thing Load (2.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32973
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32974
+ Processing by ThingsController#new as HTML
32975
+ Rendered things/_form.html.erb (13.6ms)
32976
+ Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)
32977
+  (0.1ms) rollback transaction
32978
+  (0.1ms) begin transaction
32979
+ Thing Load (8.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32980
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32981
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32982
+ Processing by ThingsController#show as HTML
32983
+ Parameters: {"id"=>"1"}
32984
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32985
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
32986
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
32987
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (62.4ms)
32988
+ Completed 200 OK in 69ms (Views: 66.8ms | ActiveRecord: 0.5ms)
32989
+  (0.1ms) rollback transaction
32990
+  (0.1ms) begin transaction
32991
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
32992
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
32993
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
32994
+ Processing by ThingsController#show as HTML
32995
+ Parameters: {"id"=>"1"}
32996
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
32997
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
32998
+  (0.1ms) rollback transaction
32999
+  (0.1ms) begin transaction
33000
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33001
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33002
+ Ominous::Warning Load (3.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33003
+ Processing by ThingsController#show as HTML
33004
+ Parameters: {"id"=>"2"}
33005
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33006
+ Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33007
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33008
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33009
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (1.8ms)
33010
+ Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 0.7ms)
33011
+  (0.1ms) rollback transaction
33012
+  (0.0ms) begin transaction
33013
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33014
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33015
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33016
+ Processing by ThingsController#show as HTML
33017
+ Parameters: {"id"=>"1"}
33018
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33019
+ Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.1ms)
33020
+  (9.3ms) rollback transaction
33021
+  (0.1ms) begin transaction
33022
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33023
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33024
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33025
+ Processing by ThingsController#show as HTML
33026
+ Parameters: {"id"=>"2"}
33027
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33028
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33029
+ Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.3ms)
33030
+  (0.1ms) rollback transaction
33031
+  (0.1ms) begin transaction
33032
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33033
+ Thing Load (2.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33034
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33035
+ Processing by ThingsController#update as HTML
33036
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
33037
+ Thing Load (0.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33038
+  (0.1ms) SAVEPOINT active_record_1
33039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33040
+ Redirected to http://test.host/things/1
33041
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
33042
+  (0.1ms) rollback transaction
33043
+  (0.1ms) begin transaction
33044
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33045
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33046
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33047
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33048
+ Processing by ThingsController#index as HTML
33049
+ Thing Load (0.3ms) SELECT "things".* FROM "things"
33050
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
33051
+  (3.4ms) rollback transaction
33052
+ Connecting to database specified by database.yml
33053
+  (3.5ms) begin transaction
33054
+ Fixture Delete (5.1ms) DELETE FROM "ominous_warnings"
33055
+ Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:32:39', '2014-08-26 10:32:39')
33056
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:32:39', '2014-08-26 10:32:39')
33057
+ Fixture Delete (0.1ms) DELETE FROM "ominous_warning_closers"
33058
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:32:39', '2014-08-26 10:32:39', 980190962)
33059
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:32:39', '2014-08-26 10:32:39', 298486374)
33060
+ Fixture Insert (0.4ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:32:39', '2014-08-26 10:32:39', 113629430)
33061
+ Fixture Delete (0.8ms) DELETE FROM "ominous_closers"
33062
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:32:39', '2014-08-26 10:32:39')
33063
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:32:39', '2014-08-26 10:32:39')
33064
+ Fixture Delete (0.7ms) DELETE FROM "things"
33065
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:32:39', '2014-08-26 10:32:39')
33066
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:32:39', '2014-08-26 10:32:39')
33067
+  (138.1ms) commit transaction
33068
+  (0.1ms) begin transaction
33069
+ Ominous::Warning Load (4.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33070
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33071
+  (0.1ms) SAVEPOINT active_record_1
33072
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33073
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33074
+  (0.1ms) rollback transaction
33075
+  (0.1ms) begin transaction
33076
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33077
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33078
+  (0.8ms) SAVEPOINT active_record_1
33079
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33080
+  (0.1ms) SAVEPOINT active_record_1
33081
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33082
+  (0.1ms) SAVEPOINT active_record_1
33083
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33084
+  (0.1ms) rollback transaction
33085
+  (0.1ms) begin transaction
33086
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33087
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33088
+  (0.1ms) SAVEPOINT active_record_1
33089
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33090
+  (0.0ms) rollback transaction
33091
+  (0.1ms) begin transaction
33092
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33093
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33094
+ Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
33095
+  (0.1ms) rollback transaction
33096
+  (0.1ms) begin transaction
33097
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33098
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33099
+  (0.1ms) rollback transaction
33100
+  (0.1ms) begin transaction
33101
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33102
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33103
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
33104
+  (0.1ms) rollback transaction
33105
+  (0.1ms) begin transaction
33106
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33107
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33108
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33109
+ Ominous::Closer Load (2.8ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
33110
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33111
+ Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
33112
+  (0.0ms) SAVEPOINT active_record_1
33113
+ SQL (0.5ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
33114
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33115
+  (0.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:32:40.101539' WHERE "ominous_warning_closers"."id" = 298486374
33116
+  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
33117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33118
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33119
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33120
+  (0.7ms) rollback transaction
33121
+  (0.0ms) begin transaction
33122
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33123
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33124
+  (0.1ms) rollback transaction
33125
+  (0.0ms) begin transaction
33126
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33127
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33128
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33129
+  (0.1ms) rollback transaction
33130
+  (0.0ms) begin transaction
33131
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33132
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33133
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
33134
+  (0.0ms) rollback transaction
33135
+  (0.0ms) begin transaction
33136
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33137
+ Processing by Ominous::WarningsController#dismiss as HTML
33138
+ Parameters: {"id"=>"1"}
33139
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
33140
+ Rendered text template (0.0ms)
33141
+ Completed 200 OK in 56ms (Views: 53.8ms | ActiveRecord: 0.1ms)
33142
+  (0.1ms) rollback transaction
33143
+  (0.1ms) begin transaction
33144
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33145
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33146
+  (0.1ms) SAVEPOINT active_record_1
33147
+  (1.4ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:32:40.239593' WHERE "ominous_closers"."id" = 1
33148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33149
+  (0.7ms) rollback transaction
33150
+  (0.0ms) begin transaction
33151
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33152
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33153
+  (0.1ms) SAVEPOINT active_record_1
33154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33155
+  (0.1ms) rollback transaction
33156
+  (0.0ms) begin transaction
33157
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33158
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33159
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
33160
+  (0.1ms) rollback transaction
33161
+  (0.0ms) begin transaction
33162
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33163
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33164
+  (0.1ms) rollback transaction
33165
+  (0.0ms) begin transaction
33166
+  (0.0ms) rollback transaction
33167
+  (0.1ms) begin transaction
33168
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33169
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33170
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33171
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33172
+ Processing by ThingsController#create as HTML
33173
+ Parameters: {"thing"=>{"name"=>"Foo"}}
33174
+  (0.1ms) SAVEPOINT active_record_1
33175
+ SQL (3.3ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:32:40 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:32:40 UTC +00:00]]
33176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33177
+ Redirected to http://test.host/things/3
33178
+ Completed 302 Found in 11ms (ActiveRecord: 3.4ms)
33179
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33180
+  (0.8ms) rollback transaction
33181
+  (0.0ms) begin transaction
33182
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33183
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33184
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33185
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33186
+ Processing by ThingsController#destroy as HTML
33187
+ Parameters: {"id"=>"1"}
33188
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33189
+  (0.0ms) SAVEPOINT active_record_1
33190
+ SQL (1.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
33191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33192
+ Redirected to http://test.host/things
33193
+ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
33194
+  (0.6ms) SELECT COUNT(*) FROM "things"
33195
+  (0.6ms) rollback transaction
33196
+  (0.0ms) begin transaction
33197
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33198
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33199
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33200
+ Processing by ThingsController#edit as HTML
33201
+ Parameters: {"id"=>"1"}
33202
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33203
+ Rendered things/_form.html.erb (5.4ms)
33204
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.1ms)
33205
+  (0.1ms) rollback transaction
33206
+  (0.1ms) begin transaction
33207
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33208
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33209
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33210
+ Processing by ThingsController#index as HTML
33211
+ Thing Load (5.7ms) SELECT "things".* FROM "things"
33212
+ Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 5.7ms)
33213
+  (0.1ms) rollback transaction
33214
+  (0.0ms) begin transaction
33215
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33216
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33217
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33218
+ Processing by ThingsController#new as HTML
33219
+ Rendered things/_form.html.erb (1.3ms)
33220
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
33221
+  (0.1ms) rollback transaction
33222
+  (0.0ms) begin transaction
33223
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33224
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33225
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33226
+ Processing by ThingsController#show as HTML
33227
+ Parameters: {"id"=>"1"}
33228
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33229
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33230
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33231
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (32.3ms)
33232
+ Completed 200 OK in 37ms (Views: 36.2ms | ActiveRecord: 0.4ms)
33233
+  (0.1ms) rollback transaction
33234
+  (0.0ms) begin transaction
33235
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33236
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33237
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33238
+ Processing by ThingsController#show as HTML
33239
+ Parameters: {"id"=>"1"}
33240
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33241
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
33242
+  (0.1ms) rollback transaction
33243
+  (0.0ms) begin transaction
33244
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33245
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33246
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33247
+ Processing by ThingsController#show as HTML
33248
+ Parameters: {"id"=>"2"}
33249
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33250
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33251
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33252
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33253
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.0ms)
33254
+ Completed 200 OK in 26ms (Views: 4.9ms | ActiveRecord: 0.5ms)
33255
+  (0.1ms) rollback transaction
33256
+  (0.1ms) begin transaction
33257
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33258
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33259
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33260
+ Processing by ThingsController#show as HTML
33261
+ Parameters: {"id"=>"1"}
33262
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33263
+ Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms)
33264
+  (0.1ms) rollback transaction
33265
+  (0.1ms) begin transaction
33266
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33267
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33268
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33269
+ Processing by ThingsController#show as HTML
33270
+ Parameters: {"id"=>"2"}
33271
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33272
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33273
+ Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms)
33274
+  (0.2ms) rollback transaction
33275
+  (0.2ms) begin transaction
33276
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33277
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33278
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33279
+ Processing by ThingsController#update as HTML
33280
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
33281
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33282
+  (0.1ms) SAVEPOINT active_record_1
33283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33284
+ Redirected to http://test.host/things/1
33285
+ Completed 302 Found in 10ms (ActiveRecord: 0.3ms)
33286
+  (0.1ms) rollback transaction
33287
+  (0.2ms) begin transaction
33288
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33289
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33290
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33291
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33292
+ Processing by ThingsController#index as HTML
33293
+ Thing Load (0.2ms) SELECT "things".* FROM "things"
33294
+ Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.2ms)
33295
+  (4.5ms) rollback transaction
33296
+ Connecting to database specified by database.yml
33297
+  (5.2ms) begin transaction
33298
+ Fixture Delete (7.6ms) DELETE FROM "ominous_warnings"
33299
+ Fixture Insert (1.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:33:39', '2014-08-26 10:33:39')
33300
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:33:39', '2014-08-26 10:33:39')
33301
+ Fixture Delete (1.3ms) DELETE FROM "ominous_warning_closers"
33302
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:33:39', '2014-08-26 10:33:39', 980190962)
33303
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:33:39', '2014-08-26 10:33:39', 298486374)
33304
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:33:39', '2014-08-26 10:33:39', 113629430)
33305
+ Fixture Delete (0.8ms) DELETE FROM "ominous_closers"
33306
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:33:39', '2014-08-26 10:33:39')
33307
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:33:39', '2014-08-26 10:33:39')
33308
+ Fixture Delete (0.6ms) DELETE FROM "things"
33309
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:33:39', '2014-08-26 10:33:39')
33310
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:33:39', '2014-08-26 10:33:39')
33311
+  (150.7ms) commit transaction
33312
+  (0.2ms) begin transaction
33313
+ Ominous::Warning Load (5.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33314
+ Ominous::Closer Load (0.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33315
+  (0.1ms) SAVEPOINT active_record_1
33316
+ Ominous::WarningCloser Exists (0.3ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33317
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33318
+  (0.1ms) rollback transaction
33319
+  (0.1ms) begin transaction
33320
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33321
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33322
+  (0.0ms) SAVEPOINT active_record_1
33323
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33324
+  (0.1ms) SAVEPOINT active_record_1
33325
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33326
+  (0.1ms) SAVEPOINT active_record_1
33327
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33328
+  (0.1ms) rollback transaction
33329
+  (0.0ms) begin transaction
33330
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33331
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33332
+  (0.1ms) SAVEPOINT active_record_1
33333
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
33334
+  (0.2ms) rollback transaction
33335
+  (0.1ms) begin transaction
33336
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33337
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33338
+ Ominous::Closer Exists (3.7ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
33339
+  (0.1ms) rollback transaction
33340
+  (0.1ms) begin transaction
33341
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33342
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33343
+  (0.1ms) rollback transaction
33344
+  (0.0ms) begin transaction
33345
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33346
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33347
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
33348
+  (0.1ms) rollback transaction
33349
+  (0.0ms) begin transaction
33350
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33351
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33352
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33353
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
33354
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33355
+ Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
33356
+  (0.1ms) SAVEPOINT active_record_1
33357
+ SQL (0.5ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
33358
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33359
+  (0.5ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:33:39.677891' WHERE "ominous_warning_closers"."id" = 298486374
33360
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
33361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33362
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33363
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33364
+  (1.0ms) rollback transaction
33365
+  (0.1ms) begin transaction
33366
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33367
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33368
+  (0.1ms) rollback transaction
33369
+  (0.0ms) begin transaction
33370
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33371
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33372
+ Ominous::Warning Exists (0.0ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33373
+  (0.1ms) rollback transaction
33374
+  (0.0ms) begin transaction
33375
+ Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33376
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33377
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
33378
+  (0.1ms) rollback transaction
33379
+  (0.1ms) begin transaction
33380
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33381
+ Processing by Ominous::WarningsController#dismiss as HTML
33382
+ Parameters: {"id"=>"1"}
33383
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
33384
+ Rendered text template (0.0ms)
33385
+ Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.1ms)
33386
+  (0.1ms) rollback transaction
33387
+  (0.1ms) begin transaction
33388
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33389
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33390
+  (0.1ms) SAVEPOINT active_record_1
33391
+  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:33:39.779162' WHERE "ominous_closers"."id" = 1
33392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33393
+  (0.6ms) rollback transaction
33394
+  (0.0ms) begin transaction
33395
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33396
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33397
+  (0.0ms) SAVEPOINT active_record_1
33398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33399
+  (0.2ms) rollback transaction
33400
+  (0.1ms) begin transaction
33401
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33402
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33403
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
33404
+  (0.1ms) rollback transaction
33405
+  (0.0ms) begin transaction
33406
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33407
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33408
+  (0.1ms) rollback transaction
33409
+  (0.1ms) begin transaction
33410
+  (0.0ms) rollback transaction
33411
+  (0.1ms) begin transaction
33412
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33413
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33414
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33415
+  (0.2ms) SELECT COUNT(*) FROM "things" 
33416
+ Processing by ThingsController#create as HTML
33417
+ Parameters: {"thing"=>{"name"=>"Foo"}}
33418
+  (0.1ms) SAVEPOINT active_record_1
33419
+ SQL (2.1ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:33:39 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:33:39 UTC +00:00]]
33420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33421
+ Redirected to http://test.host/things/3
33422
+ Completed 302 Found in 24ms (ActiveRecord: 2.2ms)
33423
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33424
+  (0.9ms) rollback transaction
33425
+  (0.0ms) begin transaction
33426
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33427
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33428
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33429
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33430
+ Processing by ThingsController#destroy as HTML
33431
+ Parameters: {"id"=>"1"}
33432
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33433
+  (0.1ms) SAVEPOINT active_record_1
33434
+ SQL (1.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
33435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33436
+ Redirected to http://test.host/things
33437
+ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
33438
+  (0.1ms) SELECT COUNT(*) FROM "things"
33439
+  (0.6ms) rollback transaction
33440
+  (0.0ms) begin transaction
33441
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33442
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33443
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33444
+ Processing by ThingsController#edit as HTML
33445
+ Parameters: {"id"=>"1"}
33446
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33447
+ Rendered things/_form.html.erb (2.5ms)
33448
+ Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.1ms)
33449
+  (0.1ms) rollback transaction
33450
+  (0.0ms) begin transaction
33451
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33452
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33453
+ Ominous::Warning Load (1.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33454
+ Processing by ThingsController#index as HTML
33455
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
33456
+ Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
33457
+  (0.1ms) rollback transaction
33458
+  (0.0ms) begin transaction
33459
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33460
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33461
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33462
+ Processing by ThingsController#new as HTML
33463
+ Rendered things/_form.html.erb (2.9ms)
33464
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
33465
+  (0.1ms) rollback transaction
33466
+  (0.0ms) begin transaction
33467
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33468
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33469
+ Ominous::Warning Load (29.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33470
+ Processing by ThingsController#show as HTML
33471
+ Parameters: {"id"=>"1"}
33472
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33473
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33474
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33475
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (28.3ms)
33476
+ Completed 200 OK in 39ms (Views: 37.6ms | ActiveRecord: 0.5ms)
33477
+  (0.1ms) rollback transaction
33478
+  (0.1ms) begin transaction
33479
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33480
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33481
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33482
+ Processing by ThingsController#show as HTML
33483
+ Parameters: {"id"=>"1"}
33484
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33485
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
33486
+  (0.1ms) rollback transaction
33487
+  (0.0ms) begin transaction
33488
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33489
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33490
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33491
+ Processing by ThingsController#show as HTML
33492
+ Parameters: {"id"=>"2"}
33493
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33494
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33495
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33496
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33497
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.3ms)
33498
+ Completed 200 OK in 29ms (Views: 5.0ms | ActiveRecord: 0.6ms)
33499
+  (0.1ms) rollback transaction
33500
+  (0.1ms) begin transaction
33501
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33502
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33503
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33504
+ Processing by ThingsController#show as HTML
33505
+ Parameters: {"id"=>"1"}
33506
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33507
+ Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms)
33508
+  (0.1ms) rollback transaction
33509
+  (0.2ms) begin transaction
33510
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33511
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33512
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33513
+ Processing by ThingsController#show as HTML
33514
+ Parameters: {"id"=>"2"}
33515
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33516
+ Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33517
+ Completed 200 OK in 9ms (Views: 3.3ms | ActiveRecord: 0.4ms)
33518
+  (0.2ms) rollback transaction
33519
+  (0.1ms) begin transaction
33520
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33521
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33522
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33523
+ Processing by ThingsController#update as HTML
33524
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
33525
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33526
+  (0.1ms) SAVEPOINT active_record_1
33527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33528
+ Redirected to http://test.host/things/1
33529
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
33530
+  (0.1ms) rollback transaction
33531
+  (0.1ms) begin transaction
33532
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33533
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33534
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33535
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33536
+ Processing by ThingsController#index as HTML
33537
+ Thing Load (0.3ms) SELECT "things".* FROM "things"
33538
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)
33539
+  (0.1ms) rollback transaction
33540
+ Connecting to database specified by database.yml
33541
+  (46.0ms) begin transaction
33542
+ Fixture Delete (5.1ms) DELETE FROM "ominous_warnings"
33543
+ Fixture Insert (2.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:34:04', '2014-08-26 10:34:04')
33544
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:34:04', '2014-08-26 10:34:04')
33545
+ Fixture Delete (0.9ms) DELETE FROM "ominous_warning_closers"
33546
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:34:04', '2014-08-26 10:34:04', 980190962)
33547
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:34:04', '2014-08-26 10:34:04', 298486374)
33548
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:34:04', '2014-08-26 10:34:04', 113629430)
33549
+ Fixture Delete (0.8ms) DELETE FROM "ominous_closers"
33550
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:34:04', '2014-08-26 10:34:04')
33551
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:34:04', '2014-08-26 10:34:04')
33552
+ Fixture Delete (0.6ms) DELETE FROM "things"
33553
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:34:04', '2014-08-26 10:34:04')
33554
+ Fixture Insert (0.2ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:34:04', '2014-08-26 10:34:04')
33555
+  (177.1ms) commit transaction
33556
+  (0.1ms) begin transaction
33557
+ Ominous::Warning Load (3.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33558
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33559
+  (0.1ms) SAVEPOINT active_record_1
33560
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33561
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33562
+  (0.1ms) rollback transaction
33563
+  (0.0ms) begin transaction
33564
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33565
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33566
+  (0.1ms) SAVEPOINT active_record_1
33567
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33568
+  (0.1ms) SAVEPOINT active_record_1
33569
+  (1.0ms) ROLLBACK TO SAVEPOINT active_record_1
33570
+  (0.1ms) SAVEPOINT active_record_1
33571
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33572
+  (0.1ms) rollback transaction
33573
+  (0.0ms) begin transaction
33574
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33575
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33576
+  (0.2ms) SAVEPOINT active_record_1
33577
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33578
+  (0.1ms) rollback transaction
33579
+  (0.1ms) begin transaction
33580
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33581
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33582
+ Ominous::Closer Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
33583
+  (0.1ms) rollback transaction
33584
+  (0.1ms) begin transaction
33585
+ Ominous::Warning Load (2.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33586
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33587
+  (0.1ms) rollback transaction
33588
+  (0.0ms) begin transaction
33589
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33590
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33591
+ Ominous::Closer Load (4.0ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
33592
+  (0.1ms) rollback transaction
33593
+  (0.0ms) begin transaction
33594
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33595
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33596
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33597
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
33598
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33599
+ Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
33600
+  (0.3ms) SAVEPOINT active_record_1
33601
+ SQL (1.5ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
33602
+ Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33603
+  (27.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:34:04.508565' WHERE "ominous_warning_closers"."id" = 298486374
33604
+  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
33605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33606
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33607
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33608
+  (0.6ms) rollback transaction
33609
+  (0.0ms) begin transaction
33610
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33611
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33612
+  (0.1ms) rollback transaction
33613
+  (0.0ms) begin transaction
33614
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33615
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33616
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33617
+  (0.0ms) rollback transaction
33618
+  (0.0ms) begin transaction
33619
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33620
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33621
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
33622
+  (0.0ms) rollback transaction
33623
+  (0.0ms) begin transaction
33624
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33625
+ Processing by Ominous::WarningsController#dismiss as HTML
33626
+ Parameters: {"id"=>"1"}
33627
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
33628
+ Rendered text template (0.0ms)
33629
+ Completed 200 OK in 41ms (Views: 39.6ms | ActiveRecord: 0.1ms)
33630
+  (0.1ms) rollback transaction
33631
+  (0.1ms) begin transaction
33632
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33633
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33634
+  (0.0ms) SAVEPOINT active_record_1
33635
+  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:34:04.608795' WHERE "ominous_closers"."id" = 1
33636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33637
+  (0.7ms) rollback transaction
33638
+  (0.0ms) begin transaction
33639
+ Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33640
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33641
+  (0.1ms) SAVEPOINT active_record_1
33642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33643
+  (23.3ms) rollback transaction
33644
+  (0.0ms) begin transaction
33645
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33646
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33647
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
33648
+  (0.1ms) rollback transaction
33649
+  (0.1ms) begin transaction
33650
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33651
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33652
+  (0.1ms) rollback transaction
33653
+  (0.1ms) begin transaction
33654
+  (0.0ms) rollback transaction
33655
+  (0.1ms) begin transaction
33656
+ Thing Load (0.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33657
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33658
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33659
+  (0.2ms) SELECT COUNT(*) FROM "things" 
33660
+ Processing by ThingsController#create as HTML
33661
+ Parameters: {"thing"=>{"name"=>"Foo"}}
33662
+  (0.1ms) SAVEPOINT active_record_1
33663
+ SQL (2.9ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:34:04 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:34:04 UTC +00:00]]
33664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33665
+ Redirected to http://test.host/things/3
33666
+ Completed 302 Found in 9ms (ActiveRecord: 3.1ms)
33667
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33668
+  (0.8ms) rollback transaction
33669
+  (0.1ms) begin transaction
33670
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33671
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33672
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33673
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33674
+ Processing by ThingsController#destroy as HTML
33675
+ Parameters: {"id"=>"1"}
33676
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33677
+  (0.1ms) SAVEPOINT active_record_1
33678
+ SQL (3.0ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
33679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33680
+ Redirected to http://test.host/things
33681
+ Completed 302 Found in 8ms (ActiveRecord: 3.2ms)
33682
+  (0.1ms) SELECT COUNT(*) FROM "things"
33683
+  (0.6ms) rollback transaction
33684
+  (0.0ms) begin transaction
33685
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33686
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33687
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33688
+ Processing by ThingsController#edit as HTML
33689
+ Parameters: {"id"=>"1"}
33690
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33691
+ Rendered things/_form.html.erb (6.0ms)
33692
+ Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.1ms)
33693
+  (0.1ms) rollback transaction
33694
+  (0.1ms) begin transaction
33695
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33696
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33697
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33698
+ Processing by ThingsController#index as HTML
33699
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
33700
+ Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms)
33701
+  (0.1ms) rollback transaction
33702
+  (0.1ms) begin transaction
33703
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33704
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33705
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33706
+ Processing by ThingsController#new as HTML
33707
+ Rendered things/_form.html.erb (1.8ms)
33708
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
33709
+  (0.3ms) rollback transaction
33710
+  (0.0ms) begin transaction
33711
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33712
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33713
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33714
+ Processing by ThingsController#show as HTML
33715
+ Parameters: {"id"=>"1"}
33716
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33717
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33718
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33719
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (33.6ms)
33720
+ Completed 200 OK in 38ms (Views: 36.7ms | ActiveRecord: 0.4ms)
33721
+  (0.1ms) rollback transaction
33722
+  (0.0ms) begin transaction
33723
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33724
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33725
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33726
+ Processing by ThingsController#show as HTML
33727
+ Parameters: {"id"=>"1"}
33728
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33729
+ Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.1ms)
33730
+  (0.1ms) rollback transaction
33731
+  (0.0ms) begin transaction
33732
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33733
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33734
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33735
+ Processing by ThingsController#show as HTML
33736
+ Parameters: {"id"=>"2"}
33737
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33738
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33739
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33740
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33741
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.1ms)
33742
+ Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
33743
+  (0.1ms) rollback transaction
33744
+  (0.1ms) begin transaction
33745
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33746
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33747
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33748
+ Processing by ThingsController#show as HTML
33749
+ Parameters: {"id"=>"1"}
33750
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33751
+ Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms)
33752
+  (0.2ms) rollback transaction
33753
+  (0.1ms) begin transaction
33754
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33755
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33756
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33757
+ Processing by ThingsController#show as HTML
33758
+ Parameters: {"id"=>"2"}
33759
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33760
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33761
+ Completed 200 OK in 15ms (Views: 3.7ms | ActiveRecord: 0.3ms)
33762
+  (0.1ms) rollback transaction
33763
+  (0.1ms) begin transaction
33764
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33765
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33766
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33767
+ Processing by ThingsController#update as HTML
33768
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
33769
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33770
+  (0.1ms) SAVEPOINT active_record_1
33771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33772
+ Redirected to http://test.host/things/1
33773
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
33774
+  (0.4ms) rollback transaction
33775
+  (0.1ms) begin transaction
33776
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33777
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33778
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33779
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33780
+ Processing by ThingsController#index as HTML
33781
+ Thing Load (0.3ms) SELECT "things".* FROM "things"
33782
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)
33783
+  (0.1ms) rollback transaction
33784
+ Connecting to database specified by database.yml
33785
+  (3.9ms) begin transaction
33786
+ Fixture Delete (5.2ms) DELETE FROM "ominous_warnings"
33787
+ Fixture Insert (1.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:34:38', '2014-08-26 10:34:38')
33788
+ Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:34:38', '2014-08-26 10:34:38')
33789
+ Fixture Delete (1.1ms) DELETE FROM "ominous_warning_closers"
33790
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:34:38', '2014-08-26 10:34:38', 980190962)
33791
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:34:38', '2014-08-26 10:34:38', 298486374)
33792
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:34:38', '2014-08-26 10:34:38', 113629430)
33793
+ Fixture Delete (1.0ms) DELETE FROM "ominous_closers"
33794
+ Fixture Insert (0.7ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:34:38', '2014-08-26 10:34:38')
33795
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:34:38', '2014-08-26 10:34:38')
33796
+ Fixture Delete (0.7ms) DELETE FROM "things"
33797
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:34:38', '2014-08-26 10:34:38')
33798
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:34:38', '2014-08-26 10:34:38')
33799
+  (222.5ms) commit transaction
33800
+  (0.2ms) begin transaction
33801
+ Ominous::Warning Load (4.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33802
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33803
+  (0.1ms) SAVEPOINT active_record_1
33804
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33805
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33806
+  (0.1ms) rollback transaction
33807
+  (0.0ms) begin transaction
33808
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33809
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33810
+  (0.1ms) SAVEPOINT active_record_1
33811
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33812
+  (0.1ms) SAVEPOINT active_record_1
33813
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
33814
+  (0.1ms) SAVEPOINT active_record_1
33815
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33816
+  (0.1ms) rollback transaction
33817
+  (0.0ms) begin transaction
33818
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33819
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33820
+  (0.1ms) SAVEPOINT active_record_1
33821
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
33822
+  (0.1ms) rollback transaction
33823
+  (0.0ms) begin transaction
33824
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33825
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33826
+ Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
33827
+  (0.1ms) rollback transaction
33828
+  (0.0ms) begin transaction
33829
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33830
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33831
+  (0.1ms) rollback transaction
33832
+  (18.3ms) begin transaction
33833
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33834
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33835
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
33836
+  (0.1ms) rollback transaction
33837
+  (0.0ms) begin transaction
33838
+ Ominous::Warning Load (3.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33839
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33840
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33841
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
33842
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33843
+ Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
33844
+  (0.1ms) SAVEPOINT active_record_1
33845
+ SQL (1.6ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
33846
+ Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
33847
+  (2.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:34:39.485941' WHERE "ominous_warning_closers"."id" = 298486374
33848
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
33849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33850
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33851
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33852
+  (0.9ms) rollback transaction
33853
+  (0.0ms) begin transaction
33854
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33855
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33856
+  (0.4ms) rollback transaction
33857
+  (0.1ms) begin transaction
33858
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33859
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33860
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33861
+  (0.1ms) rollback transaction
33862
+  (0.0ms) begin transaction
33863
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33864
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
33865
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
33866
+  (0.1ms) rollback transaction
33867
+  (0.1ms) begin transaction
33868
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33869
+ Processing by Ominous::WarningsController#dismiss as HTML
33870
+ Parameters: {"id"=>"1"}
33871
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
33872
+ Rendered text template (0.0ms)
33873
+ Completed 200 OK in 27ms (Views: 25.8ms | ActiveRecord: 0.1ms)
33874
+  (0.1ms) rollback transaction
33875
+  (0.1ms) begin transaction
33876
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33877
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33878
+  (0.0ms) SAVEPOINT active_record_1
33879
+  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:34:39.603850' WHERE "ominous_closers"."id" = 1
33880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33881
+  (0.7ms) rollback transaction
33882
+  (0.0ms) begin transaction
33883
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33884
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33885
+  (0.1ms) SAVEPOINT active_record_1
33886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33887
+  (0.9ms) rollback transaction
33888
+  (0.0ms) begin transaction
33889
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33890
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33891
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
33892
+  (0.1ms) rollback transaction
33893
+  (0.0ms) begin transaction
33894
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33895
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
33896
+  (0.1ms) rollback transaction
33897
+  (0.1ms) begin transaction
33898
+  (0.1ms) rollback transaction
33899
+  (0.1ms) begin transaction
33900
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33901
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33902
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33903
+  (0.2ms) SELECT COUNT(*) FROM "things" 
33904
+ Processing by ThingsController#create as HTML
33905
+ Parameters: {"thing"=>{"name"=>"Foo"}}
33906
+  (3.9ms) SAVEPOINT active_record_1
33907
+ SQL (1.9ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:34:39 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:34:39 UTC +00:00]]
33908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33909
+ Redirected to http://test.host/things/3
33910
+ Completed 302 Found in 11ms (ActiveRecord: 5.8ms)
33911
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33912
+  (0.8ms) rollback transaction
33913
+  (0.1ms) begin transaction
33914
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33915
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33916
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33917
+  (0.1ms) SELECT COUNT(*) FROM "things" 
33918
+ Processing by ThingsController#destroy as HTML
33919
+ Parameters: {"id"=>"1"}
33920
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33921
+  (0.1ms) SAVEPOINT active_record_1
33922
+ SQL (1.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
33923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33924
+ Redirected to http://test.host/things
33925
+ Completed 302 Found in 6ms (ActiveRecord: 2.0ms)
33926
+  (0.1ms) SELECT COUNT(*) FROM "things"
33927
+  (0.6ms) rollback transaction
33928
+  (0.0ms) begin transaction
33929
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33930
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33931
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33932
+ Processing by ThingsController#edit as HTML
33933
+ Parameters: {"id"=>"1"}
33934
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33935
+ Rendered things/_form.html.erb (3.6ms)
33936
+ Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.1ms)
33937
+  (0.1ms) rollback transaction
33938
+  (0.1ms) begin transaction
33939
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33940
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33941
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33942
+ Processing by ThingsController#index as HTML
33943
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
33944
+ Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
33945
+  (0.1ms) rollback transaction
33946
+  (0.1ms) begin transaction
33947
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33948
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33949
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33950
+ Processing by ThingsController#new as HTML
33951
+ Rendered things/_form.html.erb (1.6ms)
33952
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
33953
+  (0.1ms) rollback transaction
33954
+  (0.0ms) begin transaction
33955
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33956
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33957
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33958
+ Processing by ThingsController#show as HTML
33959
+ Parameters: {"id"=>"1"}
33960
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33961
+ Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33962
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33963
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (30.1ms)
33964
+ Completed 200 OK in 37ms (Views: 35.6ms | ActiveRecord: 0.5ms)
33965
+  (0.1ms) rollback transaction
33966
+  (0.1ms) begin transaction
33967
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33968
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33969
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33970
+ Processing by ThingsController#show as HTML
33971
+ Parameters: {"id"=>"1"}
33972
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33973
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
33974
+  (0.1ms) rollback transaction
33975
+  (0.0ms) begin transaction
33976
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33977
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33978
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33979
+ Processing by ThingsController#show as HTML
33980
+ Parameters: {"id"=>"2"}
33981
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
33982
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33983
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
33984
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
33985
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.1ms)
33986
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.5ms)
33987
+  (0.1ms) rollback transaction
33988
+  (0.3ms) begin transaction
33989
+ Thing Load (2.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33990
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
33991
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
33992
+ Processing by ThingsController#show as HTML
33993
+ Parameters: {"id"=>"1"}
33994
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
33995
+ Completed 200 OK in 69ms (Views: 67.7ms | ActiveRecord: 0.1ms)
33996
+  (0.1ms) rollback transaction
33997
+  (1.1ms) begin transaction
33998
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
33999
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34000
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34001
+ Processing by ThingsController#show as HTML
34002
+ Parameters: {"id"=>"2"}
34003
+ Thing Load (32.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34004
+ Ominous::Warning Exists (6.8ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34005
+ Completed 200 OK in 47ms (Views: 2.4ms | ActiveRecord: 39.4ms)
34006
+  (0.1ms) rollback transaction
34007
+  (0.1ms) begin transaction
34008
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34009
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34010
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34011
+ Processing by ThingsController#update as HTML
34012
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
34013
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34014
+  (0.2ms) SAVEPOINT active_record_1
34015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34016
+ Redirected to http://test.host/things/1
34017
+ Completed 302 Found in 10ms (ActiveRecord: 0.3ms)
34018
+  (0.4ms) rollback transaction
34019
+  (0.2ms) begin transaction
34020
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34021
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34022
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34023
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34024
+ Processing by ThingsController#index as HTML
34025
+ Thing Load (0.4ms) SELECT "things".* FROM "things"
34026
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.4ms)
34027
+  (0.1ms) rollback transaction
34028
+ Connecting to database specified by database.yml
34029
+  (3.4ms) begin transaction
34030
+ Fixture Delete (5.0ms) DELETE FROM "ominous_warnings"
34031
+ Fixture Insert (2.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:35:10', '2014-08-26 10:35:10')
34032
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:35:10', '2014-08-26 10:35:10')
34033
+ Fixture Delete (0.7ms) DELETE FROM "ominous_warning_closers"
34034
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:35:10', '2014-08-26 10:35:10', 980190962)
34035
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:35:10', '2014-08-26 10:35:10', 298486374)
34036
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:35:10', '2014-08-26 10:35:10', 113629430)
34037
+ Fixture Delete (0.8ms) DELETE FROM "ominous_closers"
34038
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:35:10', '2014-08-26 10:35:10')
34039
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:35:10', '2014-08-26 10:35:10')
34040
+ Fixture Delete (0.6ms) DELETE FROM "things"
34041
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:35:10', '2014-08-26 10:35:10')
34042
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:35:10', '2014-08-26 10:35:10')
34043
+  (179.2ms) commit transaction
34044
+  (0.3ms) begin transaction
34045
+ Ominous::Warning Load (7.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34046
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34047
+  (0.1ms) SAVEPOINT active_record_1
34048
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
34049
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
34050
+  (0.1ms) rollback transaction
34051
+  (0.2ms) begin transaction
34052
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34053
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34054
+  (0.1ms) SAVEPOINT active_record_1
34055
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34056
+  (0.0ms) SAVEPOINT active_record_1
34057
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34058
+  (0.1ms) SAVEPOINT active_record_1
34059
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34060
+  (0.1ms) rollback transaction
34061
+  (0.0ms) begin transaction
34062
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34063
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34064
+  (0.1ms) SAVEPOINT active_record_1
34065
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34066
+  (0.1ms) rollback transaction
34067
+  (22.9ms) begin transaction
34068
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34069
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34070
+ Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
34071
+  (0.1ms) rollback transaction
34072
+  (0.0ms) begin transaction
34073
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34074
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34075
+  (0.1ms) rollback transaction
34076
+  (0.0ms) begin transaction
34077
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34078
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34079
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
34080
+  (0.1ms) rollback transaction
34081
+  (0.0ms) begin transaction
34082
+ Ominous::Warning Load (2.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34083
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34084
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34085
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
34086
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34087
+ Ominous::WarningCloser Load (0.3ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
34088
+  (0.0ms) SAVEPOINT active_record_1
34089
+ SQL (1.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
34090
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
34091
+  (1.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:35:10.662864' WHERE "ominous_warning_closers"."id" = 298486374
34092
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
34093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34094
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34095
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34096
+  (1.2ms) rollback transaction
34097
+  (0.1ms) begin transaction
34098
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34099
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34100
+  (0.1ms) rollback transaction
34101
+  (0.1ms) begin transaction
34102
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34103
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34104
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34105
+  (0.2ms) rollback transaction
34106
+  (0.1ms) begin transaction
34107
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34108
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34109
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
34110
+  (0.1ms) rollback transaction
34111
+  (0.1ms) begin transaction
34112
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34113
+ Processing by Ominous::WarningsController#dismiss as HTML
34114
+ Parameters: {"id"=>"1"}
34115
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
34116
+ Rendered text template (0.0ms)
34117
+ Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.1ms)
34118
+  (0.2ms) rollback transaction
34119
+  (0.1ms) begin transaction
34120
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34121
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34122
+  (0.0ms) SAVEPOINT active_record_1
34123
+  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:35:10.763651' WHERE "ominous_closers"."id" = 1
34124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34125
+  (0.6ms) rollback transaction
34126
+  (0.0ms) begin transaction
34127
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34128
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34129
+  (0.1ms) SAVEPOINT active_record_1
34130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34131
+  (0.1ms) rollback transaction
34132
+  (0.1ms) begin transaction
34133
+ Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34134
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34135
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
34136
+  (0.1ms) rollback transaction
34137
+  (0.0ms) begin transaction
34138
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34139
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34140
+  (0.1ms) rollback transaction
34141
+  (0.0ms) begin transaction
34142
+  (0.0ms) rollback transaction
34143
+  (0.1ms) begin transaction
34144
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34145
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34146
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34147
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34148
+ Processing by ThingsController#create as HTML
34149
+ Parameters: {"thing"=>{"name"=>"Foo"}}
34150
+  (0.1ms) SAVEPOINT active_record_1
34151
+ SQL (2.1ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:35:10 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:35:10 UTC +00:00]]
34152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34153
+ Redirected to http://test.host/things/3
34154
+ Completed 302 Found in 12ms (ActiveRecord: 2.3ms)
34155
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34156
+  (0.8ms) rollback transaction
34157
+  (0.0ms) begin transaction
34158
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34159
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34160
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34161
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34162
+ Processing by ThingsController#destroy as HTML
34163
+ Parameters: {"id"=>"1"}
34164
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34165
+  (0.1ms) SAVEPOINT active_record_1
34166
+ SQL (1.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
34167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34168
+ Redirected to http://test.host/things
34169
+ Completed 302 Found in 4ms (ActiveRecord: 1.4ms)
34170
+  (0.1ms) SELECT COUNT(*) FROM "things"
34171
+  (0.6ms) rollback transaction
34172
+  (0.1ms) begin transaction
34173
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34174
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34175
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34176
+ Processing by ThingsController#edit as HTML
34177
+ Parameters: {"id"=>"1"}
34178
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34179
+ Rendered things/_form.html.erb (3.8ms)
34180
+ Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.1ms)
34181
+  (0.1ms) rollback transaction
34182
+  (0.0ms) begin transaction
34183
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34184
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34185
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34186
+ Processing by ThingsController#index as HTML
34187
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
34188
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.1ms)
34189
+  (0.1ms) rollback transaction
34190
+  (0.1ms) begin transaction
34191
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34192
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34193
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34194
+ Processing by ThingsController#new as HTML
34195
+ Rendered things/_form.html.erb (3.7ms)
34196
+ Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 0.0ms)
34197
+  (0.1ms) rollback transaction
34198
+  (0.0ms) begin transaction
34199
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34200
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34201
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34202
+ Processing by ThingsController#show as HTML
34203
+ Parameters: {"id"=>"1"}
34204
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34205
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34206
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34207
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (31.2ms)
34208
+ Completed 200 OK in 65ms (Views: 58.5ms | ActiveRecord: 0.5ms)
34209
+  (0.1ms) rollback transaction
34210
+  (0.0ms) begin transaction
34211
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34212
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34213
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34214
+ Processing by ThingsController#show as HTML
34215
+ Parameters: {"id"=>"1"}
34216
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34217
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
34218
+  (0.1ms) rollback transaction
34219
+  (0.0ms) begin transaction
34220
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34221
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34222
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34223
+ Processing by ThingsController#show as HTML
34224
+ Parameters: {"id"=>"2"}
34225
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34226
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34227
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34228
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34229
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.3ms)
34230
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.5ms)
34231
+  (0.1ms) rollback transaction
34232
+  (0.0ms) begin transaction
34233
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34234
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34235
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34236
+ Processing by ThingsController#show as HTML
34237
+ Parameters: {"id"=>"1"}
34238
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34239
+ Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.1ms)
34240
+  (0.1ms) rollback transaction
34241
+  (0.1ms) begin transaction
34242
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34243
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34244
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34245
+ Processing by ThingsController#show as HTML
34246
+ Parameters: {"id"=>"2"}
34247
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34248
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34249
+ Completed 200 OK in 16ms (Views: 3.6ms | ActiveRecord: 0.3ms)
34250
+  (3.1ms) rollback transaction
34251
+  (0.1ms) begin transaction
34252
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34253
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34254
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34255
+ Processing by ThingsController#update as HTML
34256
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
34257
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34258
+  (0.1ms) SAVEPOINT active_record_1
34259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34260
+ Redirected to http://test.host/things/1
34261
+ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
34262
+  (0.3ms) rollback transaction
34263
+  (0.3ms) begin transaction
34264
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34265
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34266
+ Ominous::Warning Load (8.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34267
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34268
+ Processing by ThingsController#index as HTML
34269
+ Thing Load (0.2ms) SELECT "things".* FROM "things"
34270
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)
34271
+  (0.1ms) rollback transaction
34272
+ Connecting to database specified by database.yml
34273
+  (7.5ms) begin transaction
34274
+ Fixture Delete (4.7ms) DELETE FROM "ominous_warnings"
34275
+ Fixture Insert (1.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:41:21', '2014-08-26 10:41:21')
34276
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:41:21', '2014-08-26 10:41:21')
34277
+ Fixture Delete (2.0ms) DELETE FROM "ominous_warning_closers"
34278
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:41:21', '2014-08-26 10:41:21', 980190962)
34279
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:41:21', '2014-08-26 10:41:21', 298486374)
34280
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:41:21', '2014-08-26 10:41:21', 113629430)
34281
+ Fixture Delete (0.9ms) DELETE FROM "ominous_closers"
34282
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:41:21', '2014-08-26 10:41:21')
34283
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:41:21', '2014-08-26 10:41:21')
34284
+ Fixture Delete (0.7ms) DELETE FROM "things"
34285
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:41:21', '2014-08-26 10:41:21')
34286
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:41:21', '2014-08-26 10:41:21')
34287
+  (202.0ms) commit transaction
34288
+  (0.1ms) begin transaction
34289
+ Ominous::Warning Load (4.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34290
+ Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34291
+  (0.1ms) SAVEPOINT active_record_1
34292
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
34293
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34294
+  (0.1ms) rollback transaction
34295
+  (20.7ms) begin transaction
34296
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34297
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34298
+  (0.1ms) SAVEPOINT active_record_1
34299
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34300
+  (0.0ms) SAVEPOINT active_record_1
34301
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34302
+  (0.1ms) SAVEPOINT active_record_1
34303
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34304
+  (0.1ms) rollback transaction
34305
+  (0.0ms) begin transaction
34306
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34307
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34308
+  (0.1ms) SAVEPOINT active_record_1
34309
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34310
+  (0.2ms) rollback transaction
34311
+  (0.1ms) begin transaction
34312
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34313
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34314
+ Ominous::Closer Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
34315
+  (0.1ms) rollback transaction
34316
+  (0.1ms) begin transaction
34317
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34318
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34319
+  (0.1ms) rollback transaction
34320
+  (0.1ms) begin transaction
34321
+ Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34322
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34323
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
34324
+  (0.1ms) rollback transaction
34325
+  (0.0ms) begin transaction
34326
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34327
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34328
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34329
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
34330
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34331
+ Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
34332
+  (0.1ms) SAVEPOINT active_record_1
34333
+ SQL (1.3ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
34334
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
34335
+  (0.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:41:21.884598' WHERE "ominous_warning_closers"."id" = 298486374
34336
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
34337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34338
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34339
+ Ominous::Closer Load (20.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34340
+  (0.8ms) rollback transaction
34341
+  (0.0ms) begin transaction
34342
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34343
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34344
+  (0.1ms) rollback transaction
34345
+  (0.1ms) begin transaction
34346
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34347
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34348
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34349
+  (0.1ms) rollback transaction
34350
+  (0.0ms) begin transaction
34351
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34352
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34353
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
34354
+  (0.1ms) rollback transaction
34355
+  (0.1ms) begin transaction
34356
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34357
+ Processing by Ominous::WarningsController#dismiss as HTML
34358
+ Parameters: {"id"=>"1"}
34359
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
34360
+ Rendered text template (0.0ms)
34361
+ Completed 200 OK in 32ms (Views: 31.2ms | ActiveRecord: 0.1ms)
34362
+  (0.1ms) rollback transaction
34363
+  (0.1ms) begin transaction
34364
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34365
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34366
+  (0.0ms) SAVEPOINT active_record_1
34367
+  (1.3ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:41:22.012849' WHERE "ominous_closers"."id" = 1
34368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34369
+  (0.6ms) rollback transaction
34370
+  (0.0ms) begin transaction
34371
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34372
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34373
+  (0.0ms) SAVEPOINT active_record_1
34374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34375
+  (0.1ms) rollback transaction
34376
+  (0.0ms) begin transaction
34377
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34378
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34379
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
34380
+  (0.1ms) rollback transaction
34381
+  (0.0ms) begin transaction
34382
+ Ominous::Warning Load (1.8ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34383
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34384
+  (0.1ms) rollback transaction
34385
+  (0.1ms) begin transaction
34386
+  (0.1ms) rollback transaction
34387
+  (0.1ms) begin transaction
34388
+ Thing Load (0.9ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34389
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34390
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34391
+  (0.2ms) SELECT COUNT(*) FROM "things" 
34392
+ Processing by ThingsController#create as HTML
34393
+ Parameters: {"thing"=>{"name"=>"Foo"}}
34394
+  (0.1ms) SAVEPOINT active_record_1
34395
+ SQL (25.0ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:41:22 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:41:22 UTC +00:00]]
34396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34397
+ Redirected to http://test.host/things/3
34398
+ Completed 302 Found in 32ms (ActiveRecord: 25.1ms)
34399
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34400
+  (0.5ms) rollback transaction
34401
+  (0.1ms) begin transaction
34402
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34403
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34404
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34405
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34406
+ Processing by ThingsController#destroy as HTML
34407
+ Parameters: {"id"=>"1"}
34408
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34409
+  (0.1ms) SAVEPOINT active_record_1
34410
+ SQL (1.7ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
34411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34412
+ Redirected to http://test.host/things
34413
+ Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
34414
+  (0.1ms) SELECT COUNT(*) FROM "things"
34415
+  (0.6ms) rollback transaction
34416
+  (0.1ms) begin transaction
34417
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34418
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34419
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34420
+ Processing by ThingsController#edit as HTML
34421
+ Parameters: {"id"=>"1"}
34422
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34423
+ Rendered things/_form.html.erb (2.4ms)
34424
+ Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.1ms)
34425
+  (0.1ms) rollback transaction
34426
+  (0.0ms) begin transaction
34427
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34428
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34429
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34430
+ Processing by ThingsController#index as HTML
34431
+ Thing Load (0.2ms) SELECT "things".* FROM "things"
34432
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)
34433
+  (0.1ms) rollback transaction
34434
+  (0.0ms) begin transaction
34435
+ Thing Load (1.9ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34436
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34437
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34438
+ Processing by ThingsController#new as HTML
34439
+ Rendered things/_form.html.erb (2.5ms)
34440
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
34441
+  (0.1ms) rollback transaction
34442
+  (0.1ms) begin transaction
34443
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34444
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34445
+ Ominous::Warning Load (0.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34446
+ Processing by ThingsController#show as HTML
34447
+ Parameters: {"id"=>"1"}
34448
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34449
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34450
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34451
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (30.0ms)
34452
+ Completed 200 OK in 54ms (Views: 52.6ms | ActiveRecord: 0.4ms)
34453
+  (0.1ms) rollback transaction
34454
+  (0.0ms) begin transaction
34455
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34456
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34457
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34458
+ Processing by ThingsController#show as HTML
34459
+ Parameters: {"id"=>"1"}
34460
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34461
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
34462
+  (0.1ms) rollback transaction
34463
+  (0.0ms) begin transaction
34464
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34465
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34466
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34467
+ Processing by ThingsController#show as HTML
34468
+ Parameters: {"id"=>"2"}
34469
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34470
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34471
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34472
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34473
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms)
34474
+ Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.6ms)
34475
+  (0.2ms) rollback transaction
34476
+  (0.3ms) begin transaction
34477
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34478
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34479
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34480
+ Processing by ThingsController#show as HTML
34481
+ Parameters: {"id"=>"1"}
34482
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34483
+ Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.1ms)
34484
+  (0.1ms) rollback transaction
34485
+  (0.1ms) begin transaction
34486
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34487
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34488
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34489
+ Processing by ThingsController#show as HTML
34490
+ Parameters: {"id"=>"2"}
34491
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34492
+ Ominous::Warning Exists (4.4ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34493
+ Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 4.5ms)
34494
+  (0.1ms) rollback transaction
34495
+  (0.1ms) begin transaction
34496
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34497
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34498
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34499
+ Processing by ThingsController#update as HTML
34500
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
34501
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34502
+  (0.1ms) SAVEPOINT active_record_1
34503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34504
+ Redirected to http://test.host/things/1
34505
+ Completed 302 Found in 65ms (ActiveRecord: 0.3ms)
34506
+  (0.3ms) rollback transaction
34507
+  (0.1ms) begin transaction
34508
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34509
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34510
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34511
+ Ominous::Warning Exists (11.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34512
+ Processing by ThingsController#index as HTML
34513
+ Thing Load (2.5ms) SELECT "things".* FROM "things"
34514
+ Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 2.5ms)
34515
+  (0.1ms) rollback transaction
34516
+ Connecting to database specified by database.yml
34517
+  (3.4ms) begin transaction
34518
+ Fixture Delete (5.6ms) DELETE FROM "ominous_warnings"
34519
+ Fixture Insert (1.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:43:00', '2014-08-26 10:43:00')
34520
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:43:00', '2014-08-26 10:43:00')
34521
+ Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers"
34522
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:43:00', '2014-08-26 10:43:00', 980190962)
34523
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:43:00', '2014-08-26 10:43:00', 298486374)
34524
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:43:00', '2014-08-26 10:43:00', 113629430)
34525
+ Fixture Delete (0.8ms) DELETE FROM "ominous_closers"
34526
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2014-08-26 10:43:00', '2014-08-26 10:43:00')
34527
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2014-08-26 10:43:00', '2014-08-26 10:43:00')
34528
+ Fixture Delete (0.6ms) DELETE FROM "things"
34529
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:43:00', '2014-08-26 10:43:00')
34530
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:43:00', '2014-08-26 10:43:00')
34531
+  (178.0ms) commit transaction
34532
+  (0.1ms) begin transaction
34533
+ Ominous::Warning Load (5.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34534
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34535
+  (0.1ms) SAVEPOINT active_record_1
34536
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
34537
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34538
+  (0.1ms) rollback transaction
34539
+  (0.1ms) begin transaction
34540
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34541
+ Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34542
+  (0.1ms) SAVEPOINT active_record_1
34543
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
34544
+  (0.0ms) SAVEPOINT active_record_1
34545
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34546
+  (0.1ms) SAVEPOINT active_record_1
34547
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34548
+  (0.1ms) rollback transaction
34549
+  (0.0ms) begin transaction
34550
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34551
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34552
+  (0.1ms) SAVEPOINT active_record_1
34553
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
34554
+  (0.1ms) rollback transaction
34555
+  (0.1ms) begin transaction
34556
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34557
+ Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34558
+ Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
34559
+  (0.1ms) rollback transaction
34560
+  (0.1ms) begin transaction
34561
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34562
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34563
+  (0.1ms) rollback transaction
34564
+  (0.0ms) begin transaction
34565
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34566
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34567
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
34568
+  (0.1ms) rollback transaction
34569
+  (0.0ms) begin transaction
34570
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34571
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34572
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34573
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
34574
+ Ominous::Closer Load (0.8ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34575
+ Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
34576
+  (0.1ms) SAVEPOINT active_record_1
34577
+ SQL (1.2ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
34578
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
34579
+  (1.0ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:43:00.700281' WHERE "ominous_warning_closers"."id" = 298486374
34580
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
34581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34582
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34583
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34584
+  (0.8ms) rollback transaction
34585
+  (0.1ms) begin transaction
34586
+ Ominous::Warning Load (3.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34587
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34588
+  (0.1ms) rollback transaction
34589
+  (0.1ms) begin transaction
34590
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34591
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34592
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34593
+  (0.1ms) rollback transaction
34594
+  (0.0ms) begin transaction
34595
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34596
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
34597
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
34598
+  (0.1ms) rollback transaction
34599
+  (0.1ms) begin transaction
34600
+ Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34601
+ Processing by Ominous::WarningsController#dismiss as HTML
34602
+ Parameters: {"id"=>"1"}
34603
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
34604
+ Rendered text template (0.0ms)
34605
+ Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.1ms)
34606
+  (0.1ms) rollback transaction
34607
+  (0.0ms) begin transaction
34608
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34609
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34610
+  (0.0ms) SAVEPOINT active_record_1
34611
+  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:43:00.796917' WHERE "ominous_closers"."id" = 1
34612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34613
+  (1.0ms) rollback transaction
34614
+  (0.1ms) begin transaction
34615
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34616
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34617
+  (0.0ms) SAVEPOINT active_record_1
34618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34619
+  (0.1ms) rollback transaction
34620
+  (0.0ms) begin transaction
34621
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34622
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34623
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 2]]
34624
+  (0.1ms) rollback transaction
34625
+  (0.0ms) begin transaction
34626
+ Ominous::Warning Load (1.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34627
+ Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]
34628
+  (0.1ms) rollback transaction
34629
+  (0.1ms) begin transaction
34630
+  (0.1ms) rollback transaction
34631
+  (0.2ms) begin transaction
34632
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34633
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34634
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34635
+  (0.3ms) SELECT COUNT(*) FROM "things" 
34636
+ Processing by ThingsController#create as HTML
34637
+ Parameters: {"thing"=>{"name"=>"Foo"}}
34638
+  (0.1ms) SAVEPOINT active_record_1
34639
+ SQL (2.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:43:00 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:43:00 UTC +00:00]]
34640
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34641
+ Redirected to http://test.host/things/3
34642
+ Completed 302 Found in 12ms (ActiveRecord: 2.8ms)
34643
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34644
+  (0.8ms) rollback transaction
34645
+  (0.0ms) begin transaction
34646
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34647
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34648
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34649
+  (0.1ms) SELECT COUNT(*) FROM "things" 
34650
+ Processing by ThingsController#destroy as HTML
34651
+ Parameters: {"id"=>"1"}
34652
+ Thing Load (4.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34653
+  (0.1ms) SAVEPOINT active_record_1
34654
+ SQL (1.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
34655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34656
+ Redirected to http://test.host/things
34657
+ Completed 302 Found in 9ms (ActiveRecord: 5.3ms)
34658
+  (0.1ms) SELECT COUNT(*) FROM "things"
34659
+  (0.6ms) rollback transaction
34660
+  (0.0ms) begin transaction
34661
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34662
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34663
+ Ominous::Warning Load (2.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34664
+ Processing by ThingsController#edit as HTML
34665
+ Parameters: {"id"=>"1"}
34666
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34667
+ Rendered things/_form.html.erb (2.8ms)
34668
+ Completed 200 OK in 38ms (Views: 36.9ms | ActiveRecord: 0.1ms)
34669
+  (0.1ms) rollback transaction
34670
+  (0.0ms) begin transaction
34671
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34672
+ Thing Load (7.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34673
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34674
+ Processing by ThingsController#index as HTML
34675
+ Thing Load (0.1ms) SELECT "things".* FROM "things"
34676
+ Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.1ms)
34677
+  (0.1ms) rollback transaction
34678
+  (0.1ms) begin transaction
34679
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34680
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34681
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34682
+ Processing by ThingsController#new as HTML
34683
+ Rendered things/_form.html.erb (1.4ms)
34684
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
34685
+  (0.1ms) rollback transaction
34686
+  (0.0ms) begin transaction
34687
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34688
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34689
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34690
+ Processing by ThingsController#show as HTML
34691
+ Parameters: {"id"=>"1"}
34692
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34693
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34694
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34695
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (53.4ms)
34696
+ Completed 200 OK in 61ms (Views: 59.0ms | ActiveRecord: 0.5ms)
34697
+  (0.1ms) rollback transaction
34698
+  (0.0ms) begin transaction
34699
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34700
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34701
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34702
+ Processing by ThingsController#show as HTML
34703
+ Parameters: {"id"=>"1"}
34704
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34705
+ Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)
34706
+  (0.1ms) rollback transaction
34707
+  (0.1ms) begin transaction
34708
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34709
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34710
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34711
+ Processing by ThingsController#show as HTML
34712
+ Parameters: {"id"=>"2"}
34713
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34714
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34715
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34716
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
34717
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.2ms)
34718
+ Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.5ms)
34719
+  (0.2ms) rollback transaction
34720
+  (0.1ms) begin transaction
34721
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34722
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34723
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34724
+ Processing by ThingsController#show as HTML
34725
+ Parameters: {"id"=>"1"}
34726
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34727
+ Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.1ms)
34728
+  (0.1ms) rollback transaction
34729
+  (0.1ms) begin transaction
34730
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34731
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34732
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34733
+ Processing by ThingsController#show as HTML
34734
+ Parameters: {"id"=>"2"}
34735
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
34736
+ Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34737
+ Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.4ms)
34738
+  (0.1ms) rollback transaction
34739
+  (0.1ms) begin transaction
34740
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34741
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34742
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34743
+ Processing by ThingsController#update as HTML
34744
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
34745
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
34746
+  (0.1ms) SAVEPOINT active_record_1
34747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34748
+ Redirected to http://test.host/things/1
34749
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
34750
+  (0.1ms) rollback transaction
34751
+  (0.1ms) begin transaction
34752
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
34753
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
34754
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
34755
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
34756
+ Processing by ThingsController#index as HTML
34757
+ Thing Load (0.2ms) SELECT "things".* FROM "things"
34758
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)
34759
+  (0.1ms) rollback transaction