disclaimer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +11 -0
- data/app/assets/javascripts/disclaimer/application.js +0 -3
- data/app/models/disclaimer/document.rb +2 -1
- data/app/views/disclaimer/documents/show.html.erb +0 -1
- data/lib/disclaimer/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +996 -0
- data/test/dummy/log/test.log +806 -0
- data/test/dummy/tmp/cache/assets/D73/200/sprockets%2Ff550d44b0e67ff62964de563da84c2ab +0 -0
- data/test/dummy/tmp/cache/assets/DD1/600/sprockets%2Fd61c971a175fe64d20ceefe3e7f4e2b3 +0 -0
- data/test/dummy/tmp/cache/assets/DDD/C60/sprockets%2F59ec92d2bcdf9ece368f07a4ca6509c7 +0 -0
- metadata +2 -34
data/test/dummy/log/test.log
CHANGED
@@ -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
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
44908
|
+
Connecting to database specified by database.yml
|
44909
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
44910
|
+
[1m[35m (0.1ms)[0m begin transaction
|
44911
|
+
[1m[36mFixture Delete (4.5ms)[0m [1mDELETE FROM "disclaimer_documents"[0m
|
44912
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "disclaimer_segment_holders"[0m
|
44914
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
44916
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "disclaimer_segments"
|
44917
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
44918
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (431.8ms)[0m [1mcommit transaction[0m
|
44920
|
+
[1m[35m (0.3ms)[0m begin transaction
|
44921
|
+
[1m[36mDisclaimer::Document Load (0.6ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
44922
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
44923
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
44924
|
+
[1m[35m (0.4ms)[0m UPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:07:06.362146' WHERE "disclaimer_documents"."id" = 1
|
44925
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44926
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
44927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44928
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44929
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
44930
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.7ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
|
44931
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT 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[0m
|
44932
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
44933
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44934
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44935
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
44936
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
44937
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
44938
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44939
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
44940
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
44941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
44942
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44943
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
44944
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
44945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44946
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
44950
|
+
Redirected to http://test.host/disclaimer/
|
44951
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
44952
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
44953
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44954
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44955
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
44956
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
44957
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
|
44958
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
44959
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
44960
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
44961
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
44962
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
|
44963
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44964
|
+
Redirected to http://test.host/disclaimer/documents/one
|
44965
|
+
Completed 302 Found in 125ms (ActiveRecord: 0.8ms)
|
44966
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44967
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
44968
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
44969
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
44970
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
44971
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
44972
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
44973
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
44974
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
44975
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
44976
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m 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
|
+
[1m[36mSQL (1.2ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
44978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
44979
|
+
Redirected to http://test.host/disclaimer/documents/one
|
44980
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.8ms)
|
44981
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
44982
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1[0m
|
44984
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
44988
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
44989
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
44990
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
44991
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
44992
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m 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
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
44997
|
+
Redirected to http://test.host/disclaimer/documents/one
|
44998
|
+
Completed 302 Found in 85ms (ActiveRecord: 2.5ms)
|
44999
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45000
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
45002
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45003
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
45004
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45005
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45007
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45008
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
|
45009
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45010
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45011
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
45012
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45013
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45014
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45015
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
45016
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45017
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45018
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45019
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
45020
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45021
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
45022
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
45024
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45025
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45026
|
+
Completed 302 Found in 9ms (ActiveRecord: 3.8ms)
|
45027
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45028
|
+
[1m[35mDisclaimer::Segment Load (0.5ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1[0m
|
45030
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45034
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45035
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45036
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45037
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT 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[0m
|
45038
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45043
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45044
|
+
Completed 302 Found in 15ms (ActiveRecord: 1.8ms)
|
45045
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45046
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
45048
|
+
[1m[35m (0.9ms)[0m begin transaction
|
45049
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45050
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45051
|
+
Processing by Disclaimer::DocumentsController#create as HTML
|
45052
|
+
Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
|
45053
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45054
|
+
[1m[35mSQL (1.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45056
|
+
Redirected to http://test.host/disclaimer/documents/new_document
|
45057
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.7ms)
|
45058
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45059
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1[0m
|
45060
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45061
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45062
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45066
|
+
Completed 200 OK in 116ms (Views: 113.1ms | ActiveRecord: 0.2ms)
|
45067
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45069
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45070
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
45071
|
+
Processing by Disclaimer::DocumentsController#destroy as HTML
|
45072
|
+
Parameters: {"id"=>"one"}
|
45073
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45074
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
45075
|
+
[1m[35mSQL (1.0ms)[0m DELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? [["id", 1]]
|
45076
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45077
|
+
Redirected to http://test.host/disclaimer/
|
45078
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
|
45079
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45080
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
45081
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45082
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45083
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
45084
|
+
Parameters: {"id"=>"one"}
|
45085
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45086
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
45087
|
+
[1m[35mDisclaimer::Segment Exists (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Exists (0.1ms)[0m [1mSELECT 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[0m
|
45089
|
+
Completed 200 OK in 59ms (Views: 56.9ms | ActiveRecord: 0.6ms)
|
45090
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45091
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45092
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45093
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
45094
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
45095
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
45098
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45099
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45100
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45101
|
+
Processing by Disclaimer::DocumentsController#new as HTML
|
45102
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
45103
|
+
[1m[35mDisclaimer::Segment Exists (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Exists (0.1ms)[0m [1mSELECT 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[0m
|
45105
|
+
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.3ms)
|
45106
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45108
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45112
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45116
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45117
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45118
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45119
|
+
Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
|
45120
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45121
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45122
|
+
[1m[36mDisclaimer::Segment Load (0.9ms)[0m [1mSELECT 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[0m
|
45123
|
+
[1m[35mSQL (1.1ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
45124
|
+
[1m[36m (1.5ms)[0m [1mUPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-01-24 10:07:07.570434' WHERE "disclaimer_documents"."id" = 1[0m
|
45125
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45126
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45127
|
+
Completed 302 Found in 11ms (ActiveRecord: 3.7ms)
|
45128
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
45129
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45130
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
45131
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45132
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45133
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45137
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45138
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT 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[0m
|
45139
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
45140
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45141
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45142
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.4ms)
|
45143
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45144
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT 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[0m
|
45145
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45146
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45147
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45148
|
+
[1m[36mDisclaimer::Segment Load (0.9ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45149
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45150
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45151
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45152
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1[0m
|
45153
|
+
[1m[35mSQL (1.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45155
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45156
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45157
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45158
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45159
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45160
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45161
|
+
[1m[35m (1.0ms)[0m UPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:07:07.617130' WHERE "disclaimer_segments"."id" = 1
|
45162
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45163
|
+
[1m[35m (3.5ms)[0m rollback transaction
|
45164
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45165
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45166
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45167
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45168
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1[0m
|
45169
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.1ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position LIMIT 1
|
45170
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position[0m
|
45171
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45174
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45175
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45176
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45177
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45179
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
|
45180
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT "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[0m
|
45181
|
+
[1m[35m (0.3ms)[0m UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:07:07.645501' WHERE "disclaimer_segment_holders"."id" = 980190962
|
45182
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)[0m
|
45183
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45184
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45185
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45186
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45187
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45188
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45189
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45190
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT 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[0m
|
45191
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45193
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45194
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45195
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45196
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1[0m
|
45197
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45198
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)[0m
|
45199
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:07:07.671182' WHERE "disclaimer_segment_holders"."id" = 980190962[0m
|
45201
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
|
45202
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45203
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
45205
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45206
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45207
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45208
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45209
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45211
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45212
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45213
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45214
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45216
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45217
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45218
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
45219
|
+
Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
|
45220
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45221
|
+
[1m[35mSQL (2.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45223
|
+
Redirected to http://test.host/disclaimer/segments/new_segment
|
45224
|
+
Completed 302 Found in 8ms (ActiveRecord: 3.1ms)
|
45225
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45226
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
45227
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45228
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45229
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
45233
|
+
Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.1ms)
|
45234
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45236
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45237
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
45238
|
+
Processing by Disclaimer::SegmentsController#destroy as HTML
|
45239
|
+
Parameters: {"id"=>"one"}
|
45240
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
45241
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
45242
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? [["id", 1]]
|
45243
|
+
[1m[36m (2.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45244
|
+
Redirected to http://test.host/disclaimer/segments
|
45245
|
+
Completed 302 Found in 8ms (ActiveRecord: 3.2ms)
|
45246
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45247
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
45248
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45249
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45250
|
+
Processing by Disclaimer::SegmentsController#edit as HTML
|
45251
|
+
Parameters: {"id"=>"one"}
|
45252
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
45255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45256
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45257
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
45258
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
45259
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "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[0m
|
45260
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
45263
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45264
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45265
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45270
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45271
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
45272
|
+
Parameters: {"id"=>"one"}
|
45273
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45277
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45278
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45279
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45280
|
+
Processing by Disclaimer::SegmentsController#update as HTML
|
45281
|
+
Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
|
45282
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
45283
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45284
|
+
[1m[36m (0.9ms)[0m [1mUPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-01-24 10:07:07.862200' WHERE "disclaimer_segments"."id" = 1[0m
|
45285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45286
|
+
Redirected to http://test.host/disclaimer/segments/one
|
45287
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.2ms)
|
45288
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
45289
|
+
[1m[35mDisclaimer::Segment Load (2.9ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45290
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
45291
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45292
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
45293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45294
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
45295
|
+
Processing by SampleController#bypass_disclaimer as HTML
|
45296
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
45297
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45299
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
45300
|
+
Processing by SampleController#index as HTML
|
45301
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45306
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45307
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45311
|
+
Connecting to database specified by database.yml
|
45312
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
45313
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45314
|
+
[1m[36mFixture Delete (3.5ms)[0m [1mDELETE FROM "disclaimer_documents"[0m
|
45315
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "disclaimer_segment_holders"[0m
|
45317
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
45319
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "disclaimer_segments"
|
45320
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
45321
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (164.4ms)[0m [1mcommit transaction[0m
|
45323
|
+
[1m[35m (0.2ms)[0m begin transaction
|
45324
|
+
[1m[36mDisclaimer::Document Load (0.8ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45325
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45326
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45327
|
+
[1m[35m (1.9ms)[0m UPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:13:17.358462' WHERE "disclaimer_documents"."id" = 1
|
45328
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45329
|
+
[1m[35m (5.3ms)[0m rollback transaction
|
45330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45331
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45332
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45333
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.3ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
|
45334
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT 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[0m
|
45335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45336
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45337
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45338
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45339
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45340
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45341
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45342
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45343
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
45344
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45345
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45346
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45347
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
45348
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45349
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45353
|
+
Redirected to http://test.host/disclaimer/
|
45354
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
45355
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45357
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45358
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
45359
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45360
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
|
45361
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45362
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45363
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45364
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45365
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
|
45366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45367
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45368
|
+
Completed 302 Found in 51ms (ActiveRecord: 1.5ms)
|
45369
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45370
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45371
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45372
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45373
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45374
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45375
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45376
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
45377
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45378
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45379
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m 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
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
45381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45382
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45383
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.7ms)
|
45384
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45385
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1[0m
|
45387
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45391
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45392
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45393
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45394
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45395
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.4ms)[0m 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
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45400
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45401
|
+
Completed 302 Found in 24ms (ActiveRecord: 3.3ms)
|
45402
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45403
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
45405
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45406
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
45407
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45408
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45409
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45410
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT 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[0m
|
45411
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
|
45412
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45413
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45414
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
|
45415
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45416
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT 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[0m
|
45417
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45418
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45419
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45420
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT 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[0m
|
45421
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45422
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
45423
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45424
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
45425
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m 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
|
+
[1m[36mSQL (1.3ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
45427
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45428
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45429
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.8ms)
|
45430
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45431
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1[0m
|
45433
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45437
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45438
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45439
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45440
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT 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[0m
|
45441
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.3ms)[0m 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
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mDisclaimer::SegmentHolder Load (26.5ms)[0m 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
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45446
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45447
|
+
Completed 302 Found in 46ms (ActiveRecord: 30.6ms)
|
45448
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45449
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
45451
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45452
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45453
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45454
|
+
Processing by Disclaimer::DocumentsController#create as HTML
|
45455
|
+
Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
|
45456
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45457
|
+
[1m[35mSQL (1.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45459
|
+
Redirected to http://test.host/disclaimer/documents/new_document
|
45460
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
|
45461
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45462
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1[0m
|
45463
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45465
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45469
|
+
Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.2ms)
|
45470
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45472
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45473
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
45474
|
+
Processing by Disclaimer::DocumentsController#destroy as HTML
|
45475
|
+
Parameters: {"id"=>"one"}
|
45476
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45477
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45478
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? [["id", 1]]
|
45479
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45480
|
+
Redirected to http://test.host/disclaimer/
|
45481
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
|
45482
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45483
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
45484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45485
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45486
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
45487
|
+
Parameters: {"id"=>"one"}
|
45488
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
45489
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
45490
|
+
[1m[35mDisclaimer::Segment Exists (0.3ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Exists (0.3ms)[0m [1mSELECT 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[0m
|
45492
|
+
Completed 200 OK in 51ms (Views: 46.7ms | ActiveRecord: 0.8ms)
|
45493
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45494
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45495
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45496
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
45497
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
45498
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
45501
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45502
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45503
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45504
|
+
Processing by Disclaimer::DocumentsController#new as HTML
|
45505
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
45506
|
+
[1m[35mDisclaimer::Segment Exists (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Exists (0.1ms)[0m [1mSELECT 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[0m
|
45508
|
+
Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.4ms)
|
45509
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45510
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45511
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45515
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45518
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45519
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45520
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
45521
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
45522
|
+
Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
|
45523
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45524
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45525
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45526
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
45527
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-01-24 10:13:17.843746' WHERE "disclaimer_documents"."id" = 1[0m
|
45528
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45529
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45530
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.9ms)
|
45531
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
45532
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45533
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
45534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45535
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45536
|
+
[1m[35mDisclaimer::Segment Load (0.6ms)[0m 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
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
45540
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45541
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45542
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
45543
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45544
|
+
Redirected to http://test.host/disclaimer/documents/one
|
45545
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
|
45546
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45547
|
+
[1m[36mDisclaimer::Segment Load (1.8ms)[0m [1mSELECT 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[0m
|
45548
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
45549
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45550
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45551
|
+
[1m[36mDisclaimer::Segment Load (0.9ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45552
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45553
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT 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[0m
|
45554
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45555
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1[0m
|
45556
|
+
[1m[35mSQL (2.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45558
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45559
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45560
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45561
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45562
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45563
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45564
|
+
[1m[35m (1.0ms)[0m UPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-01-24 10:13:17.891461' WHERE "disclaimer_segments"."id" = 1
|
45565
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45566
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
45567
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45568
|
+
[1m[35mDisclaimer::Document Load (2.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45569
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45570
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45571
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1[0m
|
45572
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.1ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position LIMIT 1
|
45573
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position[0m
|
45574
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45576
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45577
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45578
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45579
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45580
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45582
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
|
45583
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT "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[0m
|
45584
|
+
[1m[35m (0.2ms)[0m UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:13:17.914093' WHERE "disclaimer_segment_holders"."id" = 980190962
|
45585
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)[0m
|
45586
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45587
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT 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[0m
|
45588
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45589
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45590
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45591
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45592
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45593
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT 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[0m
|
45594
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45595
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45596
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45597
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45598
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45599
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1[0m
|
45600
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45601
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)[0m
|
45602
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.1ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mUPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-01-24 10:13:17.938893' WHERE "disclaimer_segment_holders"."id" = 980190962[0m
|
45604
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
|
45605
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45606
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
45608
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45609
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
45610
|
+
[1m[35mDisclaimer::Segment Load (0.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45611
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
45612
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
45613
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45614
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
45615
|
+
[1m[36mDisclaimer::Segment Load (0.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45616
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
45617
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
45618
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45619
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45620
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45621
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
45622
|
+
Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
|
45623
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45624
|
+
[1m[35mSQL (2.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45626
|
+
Redirected to http://test.host/disclaimer/segments/new_segment
|
45627
|
+
Completed 302 Found in 8ms (ActiveRecord: 2.6ms)
|
45628
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45629
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
45630
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
45631
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45632
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
45636
|
+
Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.2ms)
|
45637
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45638
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45639
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45640
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
45641
|
+
Processing by Disclaimer::SegmentsController#destroy as HTML
|
45642
|
+
Parameters: {"id"=>"one"}
|
45643
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
45644
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45645
|
+
[1m[35mSQL (1.2ms)[0m DELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? [["id", 1]]
|
45646
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45647
|
+
Redirected to http://test.host/disclaimer/segments
|
45648
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.5ms)
|
45649
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45650
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
45651
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45652
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45653
|
+
Processing by Disclaimer::SegmentsController#edit as HTML
|
45654
|
+
Parameters: {"id"=>"one"}
|
45655
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45658
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45659
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45660
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
45661
|
+
[1m[35mDisclaimer::Segment Load (3.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
45662
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "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[0m
|
45663
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m 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
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
45666
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45668
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45672
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45673
|
+
[1m[36mDisclaimer::Segment Load (1.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45674
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
45675
|
+
Parameters: {"id"=>"one"}
|
45676
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
45680
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45681
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
45682
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
45683
|
+
Processing by Disclaimer::SegmentsController#update as HTML
|
45684
|
+
Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
|
45685
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
45686
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45687
|
+
[1m[36m (0.9ms)[0m [1mUPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-01-24 10:13:18.092079' WHERE "disclaimer_segments"."id" = 1[0m
|
45688
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
45689
|
+
Redirected to http://test.host/disclaimer/segments/one
|
45690
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
|
45691
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
45692
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
45693
|
+
[1m[36m (4.5ms)[0m [1mrollback transaction[0m
|
45694
|
+
[1m[35m (4.3ms)[0m begin transaction
|
45695
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
45696
|
+
[1m[35m (0.1ms)[0m begin transaction
|
45697
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
45698
|
+
Processing by SampleController#bypass_disclaimer as HTML
|
45699
|
+
Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
|
45700
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45701
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45702
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
45703
|
+
Processing by SampleController#index as HTML
|
45704
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45710
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|