disclaimer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -44905,3 +44905,809 @@ Completed 302 Found in 5ms (ActiveRecord: 0.1ms)
44905
44905
  Processing by SampleController#index as HTML
44906
44906
  Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
44907
44907
   (0.1ms) rollback transaction
44908
+ Connecting to database specified by database.yml
44909
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
44910
+  (0.1ms) begin transaction
44911
+ Fixture Delete (4.5ms) DELETE FROM "disclaimer_documents"
44912
+ Fixture Insert (0.8ms) INSERT INTO "disclaimer_documents" ("id", "name", "title", "header", "footer", "created_at", "updated_at") VALUES (1, 'one', 'A Disclaimer', 'You must read my disclaimer', 'Disclaimer bottom', '2013-01-24 10:07:05', '2013-01-24 10:07:05')
44913
+ Fixture Delete (0.6ms) DELETE FROM "disclaimer_segment_holders"
44914
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-24 10:07:05', '2013-01-24 10:07:05', 980190962)
44915
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-24 10:07:05', '2013-01-24 10:07:05', 298486374)
44916
+ Fixture Delete (0.6ms) DELETE FROM "disclaimer_segments"
44917
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (1, 'one', 'MyString', 'MyText', '2013-01-24 10:07:05', '2013-01-24 10:07:05')
44918
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (2, 'two', 'MyString', 'MyText', '2013-01-24 10:07:05', '2013-01-24 10:07:05')
44919
+  (431.8ms) commit transaction
44920
+  (0.3ms) begin transaction
44921
+ Disclaimer::Document Load (0.6ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44922
+ Disclaimer::Segment Load (0.3ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
44923
+  (0.1ms) SAVEPOINT active_record_1
44924
+  (0.4ms) UPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:07:06.362146' WHERE "disclaimer_documents"."id" = 1
44925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44926
+  (0.2ms) rollback transaction
44927
+  (0.1ms) begin transaction
44928
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44929
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
44930
+ Disclaimer::SegmentHolder Load (0.7ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
44931
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
44932
+  (0.1ms) rollback transaction
44933
+  (0.1ms) begin transaction
44934
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44935
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
44936
+  (0.1ms) rollback transaction
44937
+  (0.0ms) begin transaction
44938
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44939
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
44940
+  (0.1ms) rollback transaction
44941
+  (0.0ms) begin transaction
44942
+ Disclaimer::Document Load (0.4ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44943
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
44944
+  (0.1ms) rollback transaction
44945
+  (0.1ms) begin transaction
44946
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44947
+ Processing by Disclaimer::DocumentsController#accept as HTML
44948
+ Parameters: {"id"=>"one"}
44949
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
44950
+ Redirected to http://test.host/disclaimer/
44951
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
44952
+  (0.1ms) rollback transaction
44953
+  (0.1ms) begin transaction
44954
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44955
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
44956
+ Processing by Disclaimer::DocumentsController#update as HTML
44957
+ Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
44958
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
44959
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
44960
+  (0.0ms) SAVEPOINT active_record_1
44961
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
44962
+ SQL (0.2ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
44963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44964
+ Redirected to http://test.host/disclaimer/documents/one
44965
+ Completed 302 Found in 125ms (ActiveRecord: 0.8ms)
44966
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44967
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
44968
+  (0.5ms) rollback transaction
44969
+  (0.0ms) begin transaction
44970
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44971
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
44972
+ Processing by Disclaimer::DocumentsController#update as HTML
44973
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
44974
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
44975
+  (0.0ms) SAVEPOINT active_record_1
44976
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
44977
+ SQL (1.2ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
44978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44979
+ Redirected to http://test.host/disclaimer/documents/one
44980
+ Completed 302 Found in 8ms (ActiveRecord: 1.8ms)
44981
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
44982
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
44983
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
44984
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
44985
+ Processing by Disclaimer::DocumentsController#update as HTML
44986
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
44987
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
44988
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
44989
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
44990
+  (0.1ms) SAVEPOINT active_record_1
44991
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
44992
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
44993
+ SQL (1.0ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
44994
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
44995
+ SQL (0.2ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
44996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44997
+ Redirected to http://test.host/disclaimer/documents/one
44998
+ Completed 302 Found in 85ms (ActiveRecord: 2.5ms)
44999
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45000
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45001
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45002
+ Processing by Disclaimer::DocumentsController#update as HTML
45003
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45004
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45005
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45006
+  (0.0ms) SAVEPOINT active_record_1
45007
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45008
+ SQL (0.2ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
45009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45010
+ Redirected to http://test.host/disclaimer/documents/one
45011
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
45012
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45013
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45014
+  (0.5ms) rollback transaction
45015
+  (0.2ms) begin transaction
45016
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45017
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45018
+ Processing by Disclaimer::DocumentsController#update as HTML
45019
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45020
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45021
+  (0.0ms) SAVEPOINT active_record_1
45022
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45023
+ SQL (3.4ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45025
+ Redirected to http://test.host/disclaimer/documents/one
45026
+ Completed 302 Found in 9ms (ActiveRecord: 3.8ms)
45027
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45028
+ Disclaimer::Segment Load (0.5ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45029
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
45030
+ Disclaimer::Segment Load (0.3ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45031
+ Processing by Disclaimer::DocumentsController#update as HTML
45032
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45033
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45034
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45035
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45036
+  (0.1ms) SAVEPOINT active_record_1
45037
+ Disclaimer::Segment Load (0.1ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45038
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45039
+ SQL (0.8ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
45040
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45041
+ SQL (0.2ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
45042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45043
+ Redirected to http://test.host/disclaimer/documents/one
45044
+ Completed 302 Found in 15ms (ActiveRecord: 1.8ms)
45045
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45046
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45047
+  (0.5ms) rollback transaction
45048
+  (0.9ms) begin transaction
45049
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45050
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45051
+ Processing by Disclaimer::DocumentsController#create as HTML
45052
+ Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
45053
+  (0.1ms) SAVEPOINT active_record_1
45054
+ SQL (1.6ms) INSERT INTO "disclaimer_documents" ("created_at", "footer", "header", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["footer", nil], ["header", nil], ["name", "new_document"], ["title", "Create document"], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
45055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45056
+ Redirected to http://test.host/disclaimer/documents/new_document
45057
+ Completed 302 Found in 6ms (ActiveRecord: 1.7ms)
45058
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45059
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1
45060
+  (0.5ms) rollback transaction
45061
+  (0.1ms) begin transaction
45062
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45063
+ Processing by Disclaimer::DocumentsController#delete as HTML
45064
+ Parameters: {"id"=>"one"}
45065
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45066
+ Completed 200 OK in 116ms (Views: 113.1ms | ActiveRecord: 0.2ms)
45067
+  (0.1ms) rollback transaction
45068
+  (0.1ms) begin transaction
45069
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45070
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents" 
45071
+ Processing by Disclaimer::DocumentsController#destroy as HTML
45072
+ Parameters: {"id"=>"one"}
45073
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45074
+  (0.0ms) SAVEPOINT active_record_1
45075
+ SQL (1.0ms) DELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? [["id", 1]]
45076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45077
+ Redirected to http://test.host/disclaimer/
45078
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
45079
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45080
+  (0.4ms) rollback transaction
45081
+  (0.0ms) begin transaction
45082
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45083
+ Processing by Disclaimer::DocumentsController#edit as HTML
45084
+ Parameters: {"id"=>"one"}
45085
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45086
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" 
45087
+ Disclaimer::Segment Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 1 LIMIT 1
45088
+ Disclaimer::Segment Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 2 LIMIT 1
45089
+ Completed 200 OK in 59ms (Views: 56.9ms | ActiveRecord: 0.6ms)
45090
+  (0.1ms) rollback transaction
45091
+  (0.0ms) begin transaction
45092
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45093
+ Processing by Disclaimer::DocumentsController#index as HTML
45094
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" 
45095
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45096
+ Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms)
45097
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" 
45098
+  (0.1ms) rollback transaction
45099
+  (0.0ms) begin transaction
45100
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45101
+ Processing by Disclaimer::DocumentsController#new as HTML
45102
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" 
45103
+ Disclaimer::Segment Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" IS NULL AND "disclaimer_segments"."id" = 1 LIMIT 1
45104
+ Disclaimer::Segment Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" IS NULL AND "disclaimer_segments"."id" = 2 LIMIT 1
45105
+ Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.3ms)
45106
+  (0.1ms) rollback transaction
45107
+  (0.0ms) begin transaction
45108
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45109
+ Processing by Disclaimer::DocumentsController#show as HTML
45110
+ Parameters: {"id"=>"one"}
45111
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45112
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45113
+ Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms)
45114
+  (0.1ms) rollback transaction
45115
+  (0.1ms) begin transaction
45116
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45117
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45118
+ Processing by Disclaimer::DocumentsController#update as HTML
45119
+ Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
45120
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45121
+  (0.0ms) SAVEPOINT active_record_1
45122
+ Disclaimer::Segment Load (0.9ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45123
+ SQL (1.1ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45124
+  (1.5ms) UPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-01-24 10:07:07.570434' WHERE "disclaimer_documents"."id" = 1
45125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45126
+ Redirected to http://test.host/disclaimer/documents/one
45127
+ Completed 302 Found in 11ms (ActiveRecord: 3.7ms)
45128
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents" 
45129
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45130
+  (0.4ms) rollback transaction
45131
+  (0.0ms) begin transaction
45132
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45133
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45134
+ Processing by Disclaimer::DocumentsController#update as HTML
45135
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45136
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45137
+  (0.1ms) SAVEPOINT active_record_1
45138
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45139
+ SQL (0.9ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45141
+ Redirected to http://test.host/disclaimer/documents/one
45142
+ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)
45143
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45144
+ Disclaimer::Segment Load (0.1ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45145
+  (0.5ms) rollback transaction
45146
+  (0.1ms) begin transaction
45147
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45148
+ Disclaimer::Segment Load (0.9ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45149
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45150
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45151
+  (0.0ms) SAVEPOINT active_record_1
45152
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45153
+ SQL (1.5ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["document_id", 1], ["position", 3], ["segment_id", 1], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
45154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45155
+  (0.5ms) rollback transaction
45156
+  (0.0ms) begin transaction
45157
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45158
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45159
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45160
+  (0.1ms) SAVEPOINT active_record_1
45161
+  (1.0ms) UPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:07:07.617130' WHERE "disclaimer_segments"."id" = 1
45162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45163
+  (3.5ms) rollback transaction
45164
+  (0.1ms) begin transaction
45165
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45166
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45167
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45168
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
45169
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position LIMIT 1
45170
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45171
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45172
+  (0.1ms) rollback transaction
45173
+  (0.1ms) begin transaction
45174
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45175
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45176
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45177
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
45178
+  (0.1ms) SAVEPOINT active_record_1
45179
+ SQL (0.9ms) UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
45180
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND id != 980190962) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45181
+  (0.3ms) UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:07:07.645501' WHERE "disclaimer_segment_holders"."id" = 980190962
45182
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
45183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45184
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45185
+  (0.5ms) rollback transaction
45186
+  (0.1ms) begin transaction
45187
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45188
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45189
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45190
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IS NULL ORDER BY position LIMIT 1
45191
+  (0.1ms) rollback transaction
45192
+  (0.0ms) begin transaction
45193
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45194
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45195
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45196
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1
45197
+  (0.1ms) SAVEPOINT active_record_1
45198
+ SQL (1.0ms) UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
45199
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND id != 980190962) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45200
+  (0.2ms) UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:07:07.671182' WHERE "disclaimer_segment_holders"."id" = 980190962
45201
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
45202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45203
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45204
+  (1.0ms) rollback transaction
45205
+  (0.1ms) begin transaction
45206
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45207
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45208
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45209
+  (0.1ms) rollback transaction
45210
+  (0.0ms) begin transaction
45211
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45212
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45213
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45214
+  (0.1ms) rollback transaction
45215
+  (0.1ms) begin transaction
45216
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45217
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45218
+ Processing by Disclaimer::SegmentsController#create as HTML
45219
+ Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
45220
+  (0.1ms) SAVEPOINT active_record_1
45221
+ SQL (2.9ms) INSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00], ["name", "new_segment"], ["title", "Create segment"], ["updated_at", Thu, 24 Jan 2013 10:07:07 UTC +00:00]]
45222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45223
+ Redirected to http://test.host/disclaimer/segments/new_segment
45224
+ Completed 302 Found in 8ms (ActiveRecord: 3.1ms)
45225
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45226
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45227
+  (0.5ms) rollback transaction
45228
+  (0.1ms) begin transaction
45229
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45230
+ Processing by Disclaimer::SegmentsController#delete as HTML
45231
+ Parameters: {"id"=>"one"}
45232
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45233
+ Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.1ms)
45234
+  (0.1ms) rollback transaction
45235
+  (0.0ms) begin transaction
45236
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45237
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments" 
45238
+ Processing by Disclaimer::SegmentsController#destroy as HTML
45239
+ Parameters: {"id"=>"one"}
45240
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45241
+  (0.0ms) SAVEPOINT active_record_1
45242
+ SQL (0.9ms) DELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? [["id", 1]]
45243
+  (2.1ms) RELEASE SAVEPOINT active_record_1
45244
+ Redirected to http://test.host/disclaimer/segments
45245
+ Completed 302 Found in 8ms (ActiveRecord: 3.2ms)
45246
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45247
+  (0.4ms) rollback transaction
45248
+  (0.1ms) begin transaction
45249
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45250
+ Processing by Disclaimer::SegmentsController#edit as HTML
45251
+ Parameters: {"id"=>"one"}
45252
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45253
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.1ms)
45254
+  (0.2ms) rollback transaction
45255
+  (0.1ms) begin transaction
45256
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45257
+ Processing by Disclaimer::SegmentsController#index as HTML
45258
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments"
45259
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_documents"."id" = "disclaimer_segment_holders"."document_id" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position
45260
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_documents"."id" = "disclaimer_segment_holders"."document_id" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position
45261
+ Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.5ms)
45262
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" 
45263
+  (0.1ms) rollback transaction
45264
+  (0.0ms) begin transaction
45265
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45266
+ Processing by Disclaimer::SegmentsController#new as HTML
45267
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)
45268
+  (0.1ms) rollback transaction
45269
+  (0.1ms) begin transaction
45270
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45271
+ Processing by Disclaimer::SegmentsController#show as HTML
45272
+ Parameters: {"id"=>"one"}
45273
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45274
+ Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (0.8ms)
45275
+ Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.2ms)
45276
+  (0.1ms) rollback transaction
45277
+  (0.1ms) begin transaction
45278
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45279
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45280
+ Processing by Disclaimer::SegmentsController#update as HTML
45281
+ Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
45282
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45283
+  (0.1ms) SAVEPOINT active_record_1
45284
+  (0.9ms) UPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-01-24 10:07:07.862200' WHERE "disclaimer_segments"."id" = 1
45285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45286
+ Redirected to http://test.host/disclaimer/segments/one
45287
+ Completed 302 Found in 9ms (ActiveRecord: 1.2ms)
45288
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments" 
45289
+ Disclaimer::Segment Load (2.9ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45290
+  (0.4ms) rollback transaction
45291
+  (0.1ms) begin transaction
45292
+  (0.0ms) rollback transaction
45293
+  (0.1ms) begin transaction
45294
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45295
+ Processing by SampleController#bypass_disclaimer as HTML
45296
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
45297
+  (0.5ms) rollback transaction
45298
+  (0.1ms) begin transaction
45299
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45300
+ Processing by SampleController#index as HTML
45301
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45302
+ Redirected to http://test.host/disclaimer/documents/one
45303
+ Filter chain halted as #<Proc:0x99480dc@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:6> rendered or redirected
45304
+ Completed 302 Found in 39ms (ActiveRecord: 0.2ms)
45305
+  (0.1ms) rollback transaction
45306
+  (0.0ms) begin transaction
45307
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45308
+ Processing by SampleController#index as HTML
45309
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
45310
+  (0.1ms) rollback transaction
45311
+ Connecting to database specified by database.yml
45312
+ Disclaimer::Document Load (0.3ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45313
+  (0.1ms) begin transaction
45314
+ Fixture Delete (3.5ms) DELETE FROM "disclaimer_documents"
45315
+ Fixture Insert (0.8ms) INSERT INTO "disclaimer_documents" ("id", "name", "title", "header", "footer", "created_at", "updated_at") VALUES (1, 'one', 'A Disclaimer', 'You must read my disclaimer', 'Disclaimer bottom', '2013-01-24 10:13:17', '2013-01-24 10:13:17')
45316
+ Fixture Delete (0.6ms) DELETE FROM "disclaimer_segment_holders"
45317
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-24 10:13:17', '2013-01-24 10:13:17', 980190962)
45318
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-24 10:13:17', '2013-01-24 10:13:17', 298486374)
45319
+ Fixture Delete (0.6ms) DELETE FROM "disclaimer_segments"
45320
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (1, 'one', 'MyString', 'MyText', '2013-01-24 10:13:17', '2013-01-24 10:13:17')
45321
+ Fixture Insert (0.1ms) INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (2, 'two', 'MyString', 'MyText', '2013-01-24 10:13:17', '2013-01-24 10:13:17')
45322
+  (164.4ms) commit transaction
45323
+  (0.2ms) begin transaction
45324
+ Disclaimer::Document Load (0.8ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45325
+ Disclaimer::Segment Load (0.4ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45326
+  (0.1ms) SAVEPOINT active_record_1
45327
+  (1.9ms) UPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:13:17.358462' WHERE "disclaimer_documents"."id" = 1
45328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45329
+  (5.3ms) rollback transaction
45330
+  (0.1ms) begin transaction
45331
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45332
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45333
+ Disclaimer::SegmentHolder Load (0.3ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
45334
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
45335
+  (0.1ms) rollback transaction
45336
+  (0.0ms) begin transaction
45337
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45338
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45339
+  (0.1ms) rollback transaction
45340
+  (0.0ms) begin transaction
45341
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45342
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45343
+  (0.0ms) rollback transaction
45344
+  (0.0ms) begin transaction
45345
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45346
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45347
+  (0.0ms) rollback transaction
45348
+  (0.1ms) begin transaction
45349
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45350
+ Processing by Disclaimer::DocumentsController#accept as HTML
45351
+ Parameters: {"id"=>"one"}
45352
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45353
+ Redirected to http://test.host/disclaimer/
45354
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
45355
+  (0.1ms) rollback transaction
45356
+  (0.0ms) begin transaction
45357
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45358
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45359
+ Processing by Disclaimer::DocumentsController#update as HTML
45360
+ Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
45361
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45362
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45363
+  (0.0ms) SAVEPOINT active_record_1
45364
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45365
+ SQL (0.9ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
45366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45367
+ Redirected to http://test.host/disclaimer/documents/one
45368
+ Completed 302 Found in 51ms (ActiveRecord: 1.5ms)
45369
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45370
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45371
+  (0.5ms) rollback transaction
45372
+  (0.0ms) begin transaction
45373
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45374
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45375
+ Processing by Disclaimer::DocumentsController#update as HTML
45376
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45377
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45378
+  (0.1ms) SAVEPOINT active_record_1
45379
+ Disclaimer::Segment Load (0.4ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45380
+ SQL (0.9ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45382
+ Redirected to http://test.host/disclaimer/documents/one
45383
+ Completed 302 Found in 7ms (ActiveRecord: 1.7ms)
45384
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45385
+ Disclaimer::Segment Load (0.1ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45386
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
45387
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45388
+ Processing by Disclaimer::DocumentsController#update as HTML
45389
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45390
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45391
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45392
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45393
+  (0.0ms) SAVEPOINT active_record_1
45394
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45395
+ Disclaimer::SegmentHolder Load (0.4ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45396
+ SQL (1.9ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45397
+ Disclaimer::SegmentHolder Load (0.3ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45398
+ SQL (0.2ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45400
+ Redirected to http://test.host/disclaimer/documents/one
45401
+ Completed 302 Found in 24ms (ActiveRecord: 3.3ms)
45402
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45403
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45404
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45405
+ Processing by Disclaimer::DocumentsController#update as HTML
45406
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45407
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45408
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45409
+  (0.1ms) SAVEPOINT active_record_1
45410
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45411
+ SQL (0.2ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
45412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45413
+ Redirected to http://test.host/disclaimer/documents/one
45414
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
45415
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45416
+ Disclaimer::Segment Load (0.4ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45417
+  (0.5ms) rollback transaction
45418
+  (0.0ms) begin transaction
45419
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45420
+ Disclaimer::Segment Load (0.4ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45421
+ Processing by Disclaimer::DocumentsController#update as HTML
45422
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45423
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45424
+  (0.0ms) SAVEPOINT active_record_1
45425
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45426
+ SQL (1.3ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45428
+ Redirected to http://test.host/disclaimer/documents/one
45429
+ Completed 302 Found in 8ms (ActiveRecord: 1.8ms)
45430
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45431
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45432
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
45433
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45434
+ Processing by Disclaimer::DocumentsController#update as HTML
45435
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45436
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45437
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45438
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45439
+  (0.1ms) SAVEPOINT active_record_1
45440
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45441
+ Disclaimer::SegmentHolder Load (0.3ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45442
+ SQL (2.0ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45443
+ Disclaimer::SegmentHolder Load (26.5ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45444
+ SQL (1.1ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45446
+ Redirected to http://test.host/disclaimer/documents/one
45447
+ Completed 302 Found in 46ms (ActiveRecord: 30.6ms)
45448
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45449
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45450
+  (0.6ms) rollback transaction
45451
+  (0.0ms) begin transaction
45452
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45453
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45454
+ Processing by Disclaimer::DocumentsController#create as HTML
45455
+ Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
45456
+  (0.1ms) SAVEPOINT active_record_1
45457
+ SQL (1.7ms) INSERT INTO "disclaimer_documents" ("created_at", "footer", "header", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["footer", nil], ["header", nil], ["name", "new_document"], ["title", "Create document"], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45459
+ Redirected to http://test.host/disclaimer/documents/new_document
45460
+ Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
45461
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45462
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1
45463
+  (0.5ms) rollback transaction
45464
+  (0.1ms) begin transaction
45465
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45466
+ Processing by Disclaimer::DocumentsController#delete as HTML
45467
+ Parameters: {"id"=>"one"}
45468
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45469
+ Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.2ms)
45470
+  (0.1ms) rollback transaction
45471
+  (0.1ms) begin transaction
45472
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45473
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents" 
45474
+ Processing by Disclaimer::DocumentsController#destroy as HTML
45475
+ Parameters: {"id"=>"one"}
45476
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45477
+  (0.1ms) SAVEPOINT active_record_1
45478
+ SQL (0.9ms) DELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? [["id", 1]]
45479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45480
+ Redirected to http://test.host/disclaimer/
45481
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
45482
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45483
+  (0.6ms) rollback transaction
45484
+  (0.1ms) begin transaction
45485
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45486
+ Processing by Disclaimer::DocumentsController#edit as HTML
45487
+ Parameters: {"id"=>"one"}
45488
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45489
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" 
45490
+ Disclaimer::Segment Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 1 LIMIT 1
45491
+ Disclaimer::Segment Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 2 LIMIT 1
45492
+ Completed 200 OK in 51ms (Views: 46.7ms | ActiveRecord: 0.8ms)
45493
+  (0.1ms) rollback transaction
45494
+  (0.1ms) begin transaction
45495
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45496
+ Processing by Disclaimer::DocumentsController#index as HTML
45497
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" 
45498
+ Disclaimer::Segment Load (0.3ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45499
+ Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)
45500
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" 
45501
+  (0.1ms) rollback transaction
45502
+  (0.0ms) begin transaction
45503
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45504
+ Processing by Disclaimer::DocumentsController#new as HTML
45505
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" 
45506
+ Disclaimer::Segment Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" IS NULL AND "disclaimer_segments"."id" = 1 LIMIT 1
45507
+ Disclaimer::Segment Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" IS NULL AND "disclaimer_segments"."id" = 2 LIMIT 1
45508
+ Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.4ms)
45509
+  (0.1ms) rollback transaction
45510
+  (0.1ms) begin transaction
45511
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45512
+ Processing by Disclaimer::DocumentsController#show as HTML
45513
+ Parameters: {"id"=>"one"}
45514
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45515
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45516
+ Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.4ms)
45517
+  (0.1ms) rollback transaction
45518
+  (0.0ms) begin transaction
45519
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45520
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents"
45521
+ Processing by Disclaimer::DocumentsController#update as HTML
45522
+ Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
45523
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45524
+  (0.1ms) SAVEPOINT active_record_1
45525
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45526
+ SQL (0.9ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45527
+  (0.6ms) UPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-01-24 10:13:17.843746' WHERE "disclaimer_documents"."id" = 1
45528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45529
+ Redirected to http://test.host/disclaimer/documents/one
45530
+ Completed 302 Found in 9ms (ActiveRecord: 1.9ms)
45531
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_documents" 
45532
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45533
+  (0.5ms) rollback transaction
45534
+  (0.1ms) begin transaction
45535
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45536
+ Disclaimer::Segment Load (0.6ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45537
+ Processing by Disclaimer::DocumentsController#update as HTML
45538
+ Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
45539
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45540
+  (0.1ms) SAVEPOINT active_record_1
45541
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45542
+ SQL (0.9ms) DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
45543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45544
+ Redirected to http://test.host/disclaimer/documents/one
45545
+ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
45546
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45547
+ Disclaimer::Segment Load (1.8ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45548
+  (1.1ms) rollback transaction
45549
+  (0.1ms) begin transaction
45550
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45551
+ Disclaimer::Segment Load (0.9ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45552
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45553
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45554
+  (0.0ms) SAVEPOINT active_record_1
45555
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45556
+ SQL (2.1ms) INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["document_id", 1], ["position", 3], ["segment_id", 1], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45558
+  (0.5ms) rollback transaction
45559
+  (0.0ms) begin transaction
45560
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45561
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45562
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45563
+  (0.1ms) SAVEPOINT active_record_1
45564
+  (1.0ms) UPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:13:17.891461' WHERE "disclaimer_segments"."id" = 1
45565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45566
+  (0.4ms) rollback transaction
45567
+  (0.1ms) begin transaction
45568
+ Disclaimer::Document Load (2.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45569
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45570
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45571
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
45572
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position LIMIT 1
45573
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45574
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45575
+  (0.1ms) rollback transaction
45576
+  (0.0ms) begin transaction
45577
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45578
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45579
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45580
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
45581
+  (0.1ms) SAVEPOINT active_record_1
45582
+ SQL (0.9ms) UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
45583
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND id != 980190962) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45584
+  (0.2ms) UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:13:17.914093' WHERE "disclaimer_segment_holders"."id" = 980190962
45585
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
45586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45587
+ Disclaimer::Segment Load (0.1ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45588
+  (0.5ms) rollback transaction
45589
+  (0.0ms) begin transaction
45590
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45591
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45592
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45593
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IS NULL ORDER BY position LIMIT 1
45594
+  (0.1ms) rollback transaction
45595
+  (0.0ms) begin transaction
45596
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45597
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45598
+ Disclaimer::Segment Load (0.4ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45599
+ Disclaimer::SegmentHolder Load (0.2ms) SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1
45600
+  (0.1ms) SAVEPOINT active_record_1
45601
+ SQL (0.9ms) UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
45602
+ Disclaimer::SegmentHolder Load (0.1ms) SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND id != 980190962) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
45603
+  (1.1ms) UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:13:17.938893' WHERE "disclaimer_segment_holders"."id" = 980190962
45604
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
45605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45606
+ Disclaimer::Segment Load (0.2ms) SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
45607
+  (0.5ms) rollback transaction
45608
+  (0.0ms) begin transaction
45609
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45610
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45611
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45612
+  (0.0ms) rollback transaction
45613
+  (0.0ms) begin transaction
45614
+ Disclaimer::Document Load (0.1ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
45615
+ Disclaimer::Segment Load (0.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45616
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
45617
+  (0.3ms) rollback transaction
45618
+  (0.1ms) begin transaction
45619
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45620
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45621
+ Processing by Disclaimer::SegmentsController#create as HTML
45622
+ Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
45623
+  (0.1ms) SAVEPOINT active_record_1
45624
+ SQL (2.5ms) INSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00], ["name", "new_segment"], ["title", "Create segment"], ["updated_at", Thu, 24 Jan 2013 10:13:17 UTC +00:00]]
45625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45626
+ Redirected to http://test.host/disclaimer/segments/new_segment
45627
+ Completed 302 Found in 8ms (ActiveRecord: 2.6ms)
45628
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45629
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
45630
+  (0.5ms) rollback transaction
45631
+  (0.0ms) begin transaction
45632
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45633
+ Processing by Disclaimer::SegmentsController#delete as HTML
45634
+ Parameters: {"id"=>"one"}
45635
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45636
+ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.2ms)
45637
+  (0.1ms) rollback transaction
45638
+  (0.0ms) begin transaction
45639
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45640
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments" 
45641
+ Processing by Disclaimer::SegmentsController#destroy as HTML
45642
+ Parameters: {"id"=>"one"}
45643
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45644
+  (0.1ms) SAVEPOINT active_record_1
45645
+ SQL (1.2ms) DELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? [["id", 1]]
45646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45647
+ Redirected to http://test.host/disclaimer/segments
45648
+ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)
45649
+  (0.1ms) SELECT COUNT(*) FROM "disclaimer_segments"
45650
+  (0.4ms) rollback transaction
45651
+  (0.0ms) begin transaction
45652
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45653
+ Processing by Disclaimer::SegmentsController#edit as HTML
45654
+ Parameters: {"id"=>"one"}
45655
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45656
+ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.2ms)
45657
+  (0.1ms) rollback transaction
45658
+  (0.0ms) begin transaction
45659
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45660
+ Processing by Disclaimer::SegmentsController#index as HTML
45661
+ Disclaimer::Segment Load (3.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments"
45662
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_documents"."id" = "disclaimer_segment_holders"."document_id" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position
45663
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_documents"."id" = "disclaimer_segment_holders"."document_id" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position
45664
+ Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 3.6ms)
45665
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" 
45666
+  (0.1ms) rollback transaction
45667
+  (0.0ms) begin transaction
45668
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45669
+ Processing by Disclaimer::SegmentsController#new as HTML
45670
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
45671
+  (0.1ms) rollback transaction
45672
+  (0.0ms) begin transaction
45673
+ Disclaimer::Segment Load (1.0ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45674
+ Processing by Disclaimer::SegmentsController#show as HTML
45675
+ Parameters: {"id"=>"one"}
45676
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45677
+ Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (0.5ms)
45678
+ Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.2ms)
45679
+  (0.1ms) rollback transaction
45680
+  (0.0ms) begin transaction
45681
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45682
+  (0.3ms) SELECT COUNT(*) FROM "disclaimer_segments"
45683
+ Processing by Disclaimer::SegmentsController#update as HTML
45684
+ Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
45685
+ Disclaimer::Segment Load (0.2ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
45686
+  (0.0ms) SAVEPOINT active_record_1
45687
+  (0.9ms) UPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-01-24 10:13:18.092079' WHERE "disclaimer_segments"."id" = 1
45688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45689
+ Redirected to http://test.host/disclaimer/segments/one
45690
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
45691
+  (1.0ms) SELECT COUNT(*) FROM "disclaimer_segments" 
45692
+ Disclaimer::Segment Load (0.1ms) SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
45693
+  (4.5ms) rollback transaction
45694
+  (4.3ms) begin transaction
45695
+  (0.0ms) rollback transaction
45696
+  (0.1ms) begin transaction
45697
+ Disclaimer::Document Load (0.3ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45698
+ Processing by SampleController#bypass_disclaimer as HTML
45699
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
45700
+  (0.1ms) rollback transaction
45701
+  (0.0ms) begin transaction
45702
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45703
+ Processing by SampleController#index as HTML
45704
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
45705
+ Redirected to http://test.host/disclaimer/documents/one
45706
+ Filter chain halted as #<Proc:0x9632d20@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:6> rendered or redirected
45707
+ Completed 302 Found in 11ms (ActiveRecord: 0.2ms)
45708
+  (0.1ms) rollback transaction
45709
+  (0.1ms) begin transaction
45710
+ Disclaimer::Document Load (0.2ms) SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
45711
+ Processing by SampleController#index as HTML
45712
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
45713
+  (0.1ms) rollback transaction