disclaimer 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/disclaimer/version.rb
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
module Disclaimer
|
2
|
-
VERSION = "0.0
|
2
|
+
VERSION = "0.1.0"
|
3
3
|
end
|
4
4
|
|
5
5
|
# History
|
6
6
|
#
|
7
|
+
# 0.1.0 - Moves app to beta
|
8
|
+
# -------------------------
|
9
|
+
# Makes app ready for beta release
|
10
|
+
#
|
7
11
|
# 0.0.7 - Fixes redirect when app hosted in sub uri
|
8
12
|
# -------------------------------------------------
|
9
13
|
# Version 0.0.6 fixed the redirect to the disclaimer page, but the return from
|
Binary file
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (25.0ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
+
[1m[35m (204.5ms)[0m CREATE TABLE "disclaimer_documents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "name" varchar(255), "header" text, "footer" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
4
|
+
[1m[36m (211.2ms)[0m [1mCREATE TABLE "disclaimer_segment_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_id" integer, "segment_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
5
|
+
[1m[35m (155.0ms)[0m CREATE TABLE "disclaimer_segments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6
|
+
[1m[36m (170.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
+
[1m[35m (0.2ms)[0m PRAGMA index_list("schema_migrations")
|
8
|
+
[1m[36m (173.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
10
|
+
[1m[36m (148.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121024080818')[0m
|
11
|
+
[1m[35m (124.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121024074240')
|
12
|
+
[1m[36m (99.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121023125748')[0m
|
13
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
14
|
+
Connecting to database specified by database.yml
|
15
|
+
[1m[36m (23.9ms)[0m [1mselect sqlite_version(*)[0m
|
16
|
+
[1m[35m (173.2ms)[0m DROP TABLE "disclaimer_documents"
|
17
|
+
[1m[36m (158.6ms)[0m [1mCREATE TABLE "disclaimer_documents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "name" varchar(255), "header" text, "footer" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
18
|
+
[1m[35m (144.9ms)[0m DROP TABLE "disclaimer_segment_holders"
|
19
|
+
[1m[36m (157.5ms)[0m [1mCREATE TABLE "disclaimer_segment_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_id" integer, "segment_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
20
|
+
[1m[35m (165.1ms)[0m DROP TABLE "disclaimer_segments"
|
21
|
+
[1m[36m (157.9ms)[0m [1mCREATE TABLE "disclaimer_segments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
22
|
+
[1m[35m (3.1ms)[0m SELECT version FROM "schema_migrations"
|
23
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
@@ -0,0 +1,1353 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
6
|
+
[1m[35m (190.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
7
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
8
|
+
[1m[35m (199.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
9
|
+
[1m[36m (0.4ms)[0m [1mselect sqlite_version(*)[0m
|
10
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
11
|
+
Connecting to database specified by database.yml
|
12
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
13
|
+
Migrating to CreateDisclaimerDocuments (20121023125748)
|
14
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
15
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16
|
+
[1m[35m (12.7ms)[0m CREATE TABLE "disclaimer_documents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "name" varchar(255), "header" text, "footer" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
17
|
+
[1m[36m (2.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121023125748')[0m
|
18
|
+
[1m[35m (148.2ms)[0m commit transaction
|
19
|
+
Migrating to CreateSegments (20121024074240)
|
20
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "disclaimer_segments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
22
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121024074240')[0m
|
23
|
+
[1m[35m (188.2ms)[0m commit transaction
|
24
|
+
Migrating to CreateDisclaimerSegmentHolders (20121024080818)
|
25
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
26
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "disclaimer_segment_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_id" integer, "segment_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
27
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121024080818')[0m
|
28
|
+
[1m[35m (159.8ms)[0m commit transaction
|
29
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
30
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
31
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("disclaimer_documents")[0m
|
32
|
+
[1m[35m (0.1ms)[0m PRAGMA index_list("disclaimer_segment_holders")
|
33
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("disclaimer_segments")[0m
|
34
|
+
Connecting to database specified by database.yml
|
35
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
36
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37
|
+
[1m[36mFixture Delete (3.5ms)[0m [1mDELETE FROM "disclaimer_documents"[0m
|
38
|
+
[1m[35mFixture Insert (6.9ms)[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-06-07 10:11:50', '2013-06-07 10:11:50')
|
39
|
+
[1m[36mFixture Delete (5.0ms)[0m [1mDELETE FROM "disclaimer_segment_holders"[0m
|
40
|
+
[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-06-07 10:11:50', '2013-06-07 10:11:50', 980190962)
|
41
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-06-07 10:11:50', '2013-06-07 10:11:50', 298486374)[0m
|
42
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "disclaimer_segments"
|
43
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (1, 'one', 'MyString', 'MyText', '2013-06-07 10:11:50', '2013-06-07 10:11:50')[0m
|
44
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (2, 'two', 'MyString', 'MyText', '2013-06-07 10:11:50', '2013-06-07 10:11:50')
|
45
|
+
[1m[36m (175.8ms)[0m [1mcommit transaction[0m
|
46
|
+
[1m[35m (0.1ms)[0m begin transaction
|
47
|
+
[1m[36mDisclaimer::Document Load (2.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
48
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
49
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
50
|
+
[1m[35m (0.7ms)[0m UPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-06-07 10:11:51.159320' WHERE "disclaimer_documents"."id" = 1
|
51
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
53
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
55
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
56
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.4ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
|
57
|
+
[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
|
58
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
59
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
60
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
61
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
62
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35mDisclaimer::Document Load (1.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
65
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
66
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
67
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
68
|
+
[1m[35mDisclaimer::Document Load (0.5ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
69
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
70
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
73
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
74
|
+
Parameters: {"id"=>"one"}
|
75
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
76
|
+
Redirected to http://test.host
|
77
|
+
Completed 302 Found in 27ms (ActiveRecord: 0.2ms)
|
78
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
79
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
80
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
81
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
82
|
+
Parameters: {"id"=>"one"}
|
83
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
84
|
+
Redirected to http://test.host/disclaimer/documents
|
85
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
86
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
88
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
89
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
90
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
91
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
|
92
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
93
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
94
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
95
|
+
[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
|
96
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
|
97
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
98
|
+
Redirected to http://test.host/disclaimer/documents/one
|
99
|
+
Completed 302 Found in 243ms (ActiveRecord: 5.8ms)
|
100
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
101
|
+
[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
|
102
|
+
[1m[35m (15.6ms)[0m rollback transaction
|
103
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
104
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
105
|
+
[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
|
106
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
107
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
108
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
109
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
110
|
+
[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
|
111
|
+
[1m[36mSQL (12.2ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
113
|
+
Redirected to http://test.host/disclaimer/documents/one
|
114
|
+
Completed 302 Found in 26ms (ActiveRecord: 13.0ms)
|
115
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
116
|
+
[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
|
117
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1[0m
|
118
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
119
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
120
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
121
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
122
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
123
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
125
|
+
[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
|
126
|
+
[1m[35mDisclaimer::SegmentHolder Load (7.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
|
127
|
+
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00]]
|
128
|
+
[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
|
129
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00]]
|
130
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
131
|
+
Redirected to http://test.host/disclaimer/documents/one
|
132
|
+
Completed 302 Found in 90ms (ActiveRecord: 14.7ms)
|
133
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
134
|
+
[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
|
135
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
136
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
137
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
138
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
139
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141
|
+
[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
|
142
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1
|
143
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
144
|
+
Redirected to http://test.host/disclaimer/documents/one
|
145
|
+
Completed 302 Found in 22ms (ActiveRecord: 1.0ms)
|
146
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
147
|
+
[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
|
148
|
+
[1m[35m (6.5ms)[0m rollback transaction
|
149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
150
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
151
|
+
[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
|
152
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
153
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
154
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
156
|
+
[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
|
157
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
158
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
159
|
+
Redirected to http://test.host/disclaimer/documents/one
|
160
|
+
Completed 302 Found in 28ms (ActiveRecord: 1.2ms)
|
161
|
+
[1m[36mDisclaimer::Document Load (4.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
162
|
+
[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
|
163
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1[0m
|
164
|
+
[1m[35mDisclaimer::Segment Load (1.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
165
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
166
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
167
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
168
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
169
|
+
[1m[36mDisclaimer::Segment Load (10.8ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
170
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
171
|
+
[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
|
172
|
+
[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
|
173
|
+
[1m[36mSQL (10.8ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00]]
|
174
|
+
[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
|
175
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00]]
|
176
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
177
|
+
Redirected to http://test.host/disclaimer/documents/one
|
178
|
+
Completed 302 Found in 45ms (ActiveRecord: 22.9ms)
|
179
|
+
[1m[36mDisclaimer::Document Load (4.9ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
180
|
+
[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
|
181
|
+
[1m[36m (9.2ms)[0m [1mrollback transaction[0m
|
182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
183
|
+
[1m[36mDisclaimer::Document Load (3.7ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
184
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
185
|
+
Processing by Disclaimer::DocumentsController#create as HTML
|
186
|
+
Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
|
187
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
188
|
+
[1m[35mSQL (10.8ms)[0m INSERT INTO "disclaimer_documents" ("created_at", "footer", "header", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00], ["footer", nil], ["header", nil], ["name", "new_document"], ["title", "Create document"], ["updated_at", Fri, 07 Jun 2013 10:11:52 UTC +00:00]]
|
189
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
190
|
+
Redirected to http://test.host/disclaimer/documents/new_document
|
191
|
+
Completed 302 Found in 22ms (ActiveRecord: 11.0ms)
|
192
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
193
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1[0m
|
194
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
195
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
196
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
197
|
+
Processing by Disclaimer::DocumentsController#delete as HTML
|
198
|
+
Parameters: {"id"=>"one"}
|
199
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
200
|
+
Completed 200 OK in 172ms (Views: 166.2ms | ActiveRecord: 0.2ms)
|
201
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
202
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
203
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
204
|
+
[1m[36m (12.3ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
205
|
+
Processing by Disclaimer::DocumentsController#destroy as HTML
|
206
|
+
Parameters: {"id"=>"one"}
|
207
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
208
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
209
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? [["id", 1]]
|
210
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
211
|
+
Redirected to http://test.host/disclaimer/
|
212
|
+
Completed 302 Found in 14ms (ActiveRecord: 1.2ms)
|
213
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
214
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
216
|
+
[1m[36mDisclaimer::Document Load (0.8ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
217
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
218
|
+
Parameters: {"id"=>"one"}
|
219
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
220
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
221
|
+
[1m[35mDisclaimer::Segment Exists (0.2ms)[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
|
222
|
+
[1m[36mDisclaimer::Segment Exists (7.8ms)[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
|
223
|
+
Completed 200 OK in 122ms (Views: 111.5ms | ActiveRecord: 8.5ms)
|
224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
226
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
227
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
228
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
229
|
+
[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
|
230
|
+
Completed 200 OK in 33ms (Views: 31.7ms | ActiveRecord: 0.8ms)
|
231
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
232
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
234
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
235
|
+
Processing by Disclaimer::DocumentsController#new as HTML
|
236
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
237
|
+
[1m[35mDisclaimer::Segment Exists (0.2ms)[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
|
238
|
+
[1m[36mDisclaimer::Segment Exists (0.2ms)[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
|
239
|
+
Completed 200 OK in 44ms (Views: 43.3ms | ActiveRecord: 0.5ms)
|
240
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
242
|
+
[1m[35mDisclaimer::Document Load (0.6ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
243
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
244
|
+
Parameters: {"id"=>"one"}
|
245
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
246
|
+
[1m[35mDisclaimer::Segment Load (5.8ms)[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
|
247
|
+
Completed 200 OK in 54ms (Views: 35.1ms | ActiveRecord: 5.9ms)
|
248
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
249
|
+
[1m[35m (0.1ms)[0m begin transaction
|
250
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
251
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
252
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
253
|
+
Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
|
254
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
255
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
256
|
+
[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
|
257
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
258
|
+
[1m[36m (9.0ms)[0m [1mUPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-06-07 10:11:52.929762' WHERE "disclaimer_documents"."id" = 1[0m
|
259
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
260
|
+
Redirected to http://test.host/disclaimer/documents/one
|
261
|
+
Completed 302 Found in 24ms (ActiveRecord: 10.0ms)
|
262
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
263
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
264
|
+
[1m[36m (4.4ms)[0m [1mrollback transaction[0m
|
265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
266
|
+
[1m[36mDisclaimer::Document Load (6.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
267
|
+
[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
|
268
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
269
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
270
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
271
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
272
|
+
[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
|
273
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
274
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
275
|
+
Redirected to http://test.host/disclaimer/documents/one
|
276
|
+
Completed 302 Found in 17ms (ActiveRecord: 1.2ms)
|
277
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
278
|
+
[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
|
279
|
+
[1m[35m (13.7ms)[0m rollback transaction
|
280
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
281
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
282
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
283
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
284
|
+
[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
|
285
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
286
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
287
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:11:53 UTC +00:00], ["document_id", 1], ["position", 3], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:11:53 UTC +00:00]]
|
288
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
289
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
290
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
291
|
+
[1m[35mDisclaimer::Document Load (0.5ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
292
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
293
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
294
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
295
|
+
[1m[35m (1.1ms)[0m UPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-06-07 10:11:53.066880' WHERE "disclaimer_segments"."id" = 1
|
296
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
297
|
+
[1m[35m (14.5ms)[0m rollback transaction
|
298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299
|
+
[1m[35mDisclaimer::Document Load (10.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
300
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
301
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
302
|
+
[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
|
303
|
+
[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
|
304
|
+
[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[0m
|
305
|
+
[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
|
306
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
308
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
309
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
310
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
311
|
+
[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
|
312
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
313
|
+
[1m[35mSQL (7.1ms)[0m UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
|
314
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
315
|
+
[1m[35m (0.5ms)[0m UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-06-07 10:11:53.142608' WHERE "disclaimer_segment_holders"."id" = 980190962
|
316
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)[0m
|
317
|
+
[1m[35m (12.4ms)[0m RELEASE SAVEPOINT active_record_1
|
318
|
+
[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
|
319
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321
|
+
[1m[35mDisclaimer::Document Load (0.5ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
322
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
324
|
+
[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
|
325
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
326
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
327
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
328
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
329
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
330
|
+
[1m[36mDisclaimer::SegmentHolder Load (8.6ms)[0m [1mSELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1[0m
|
331
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
332
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)[0m
|
333
|
+
[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
|
334
|
+
[1m[36m (8.7ms)[0m [1mUPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-06-07 10:11:53.205303' WHERE "disclaimer_segment_holders"."id" = 980190962[0m
|
335
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
|
336
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
337
|
+
[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
|
338
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
340
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
341
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
342
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
343
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
345
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
346
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
347
|
+
[1m[35mDisclaimer::Segment Load (6.8ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
348
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
350
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
351
|
+
[1m[35m (5.5ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
352
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
353
|
+
Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
|
354
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
355
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Fri, 07 Jun 2013 10:11:53 UTC +00:00], ["name", "new_segment"], ["title", "Create segment"], ["updated_at", Fri, 07 Jun 2013 10:11:53 UTC +00:00]]
|
356
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
357
|
+
Redirected to http://test.host/disclaimer/segments/new_segment
|
358
|
+
Completed 302 Found in 19ms (ActiveRecord: 1.2ms)
|
359
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
360
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
361
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
362
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
363
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
364
|
+
Processing by Disclaimer::SegmentsController#delete as HTML
|
365
|
+
Parameters: {"id"=>"one"}
|
366
|
+
[1m[36mDisclaimer::Segment Load (0.5ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
367
|
+
Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 0.5ms)
|
368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
370
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
371
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
372
|
+
Processing by Disclaimer::SegmentsController#destroy as HTML
|
373
|
+
Parameters: {"id"=>"one"}
|
374
|
+
[1m[35mDisclaimer::Segment Load (4.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
375
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
376
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? [["id", 1]]
|
377
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
378
|
+
Redirected to http://test.host/disclaimer/segments
|
379
|
+
Completed 302 Found in 20ms (ActiveRecord: 5.1ms)
|
380
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
381
|
+
[1m[36m (5.5ms)[0m [1mrollback transaction[0m
|
382
|
+
[1m[35m (0.1ms)[0m begin transaction
|
383
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
384
|
+
Processing by Disclaimer::SegmentsController#edit as HTML
|
385
|
+
Parameters: {"id"=>"one"}
|
386
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
387
|
+
Completed 200 OK in 30ms (Views: 28.4ms | ActiveRecord: 0.2ms)
|
388
|
+
[1m[36m (5.4ms)[0m [1mrollback transaction[0m
|
389
|
+
[1m[35m (0.1ms)[0m begin transaction
|
390
|
+
[1m[36mDisclaimer::Segment Load (0.5ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
391
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
392
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
393
|
+
[1m[36mDisclaimer::Document Load (0.7ms)[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
|
394
|
+
[1m[35mDisclaimer::Document Load (0.5ms)[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
|
395
|
+
Completed 200 OK in 80ms (Views: 68.4ms | ActiveRecord: 1.3ms)
|
396
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
397
|
+
[1m[35m (5.7ms)[0m rollback transaction
|
398
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
399
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
400
|
+
Processing by Disclaimer::SegmentsController#new as HTML
|
401
|
+
Completed 200 OK in 33ms (Views: 23.7ms | ActiveRecord: 0.0ms)
|
402
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
403
|
+
[1m[35m (0.1ms)[0m begin transaction
|
404
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
405
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
406
|
+
Parameters: {"id"=>"one"}
|
407
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
408
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (0.7ms)
|
409
|
+
Completed 200 OK in 170ms (Views: 163.9ms | ActiveRecord: 0.3ms)
|
410
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
412
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
413
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
414
|
+
Processing by Disclaimer::SegmentsController#update as HTML
|
415
|
+
Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
|
416
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
417
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
418
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-06-07 10:11:53.840436' WHERE "disclaimer_segments"."id" = 1[0m
|
419
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
420
|
+
Redirected to http://test.host/disclaimer/segments/one
|
421
|
+
Completed 302 Found in 19ms (ActiveRecord: 1.0ms)
|
422
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
423
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
424
|
+
[1m[36m (1.7ms)[0m [1mrollback transaction[0m
|
425
|
+
[1m[35m (8.5ms)[0m begin transaction
|
426
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
428
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
429
|
+
Processing by SampleController#bypass_disclaimer as HTML
|
430
|
+
Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.0ms)
|
431
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
432
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
433
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
434
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
435
|
+
[1m[35m (0.7ms)[0m UPDATE "disclaimer_documents" SET "name" = 'something_else', "updated_at" = '2013-06-07 10:11:53.962995' WHERE "disclaimer_documents"."id" = 1
|
436
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
437
|
+
Processing by SampleController#index as HTML
|
438
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
439
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
440
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
442
|
+
[1m[35mDisclaimer::Document Load (0.5ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
443
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
444
|
+
[1m[35m (0.6ms)[0m UPDATE "disclaimer_documents" SET "name" = 'something_else', "updated_at" = '2013-06-07 10:11:54.006637' WHERE "disclaimer_documents"."id" = 1
|
445
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
446
|
+
Processing by SampleController#index as HTML
|
447
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
448
|
+
Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms)
|
449
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
450
|
+
[1m[36m (0.8ms)[0m [1mUPDATE "disclaimer_documents" SET "name" = 'one', "updated_at" = '2013-06-07 10:11:54.036931' WHERE "disclaimer_documents"."id" = 1[0m
|
451
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
452
|
+
Processing by SampleController#index as HTML
|
453
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
454
|
+
Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
455
|
+
[1m[36m (9.5ms)[0m [1mrollback transaction[0m
|
456
|
+
[1m[35m (0.1ms)[0m begin transaction
|
457
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
458
|
+
Processing by SampleController#index as HTML
|
459
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
460
|
+
Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
461
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
462
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
463
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
464
|
+
Processing by SampleController#index as HTML
|
465
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
466
|
+
Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms)
|
467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
468
|
+
Connecting to database specified by database.yml
|
469
|
+
[1m[36mDisclaimer::Document Load (0.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
470
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
472
|
+
[1m[35mFixture Delete (9.5ms)[0m DELETE FROM "disclaimer_documents"
|
473
|
+
[1m[36mFixture Insert (2.4ms)[0m [1mINSERT 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-06-07 10:13:29', '2013-06-07 10:13:29')[0m
|
474
|
+
[1m[35mFixture Delete (5.3ms)[0m DELETE FROM "disclaimer_segment_holders"
|
475
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-06-07 10:13:29', '2013-06-07 10:13:29', 980190962)[0m
|
476
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-06-07 10:13:29', '2013-06-07 10:13:29', 298486374)
|
477
|
+
[1m[36mFixture Delete (9.2ms)[0m [1mDELETE FROM "disclaimer_segments"[0m
|
478
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (1, 'one', 'MyString', 'MyText', '2013-06-07 10:13:29', '2013-06-07 10:13:29')
|
479
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (2, 'two', 'MyString', 'MyText', '2013-06-07 10:13:29', '2013-06-07 10:13:29')[0m
|
480
|
+
[1m[35m (182.6ms)[0m commit transaction
|
481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
482
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
483
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
485
|
+
[1m[36m (2.1ms)[0m [1mUPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-06-07 10:13:29.453137' WHERE "disclaimer_documents"."id" = 1[0m
|
486
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
487
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
488
|
+
[1m[35m (0.1ms)[0m begin transaction
|
489
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
490
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
491
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.4ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1[0m
|
492
|
+
[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
|
493
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
494
|
+
[1m[35m (0.1ms)[0m begin transaction
|
495
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
496
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
498
|
+
[1m[35m (0.1ms)[0m begin transaction
|
499
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
500
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
501
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
502
|
+
[1m[35m (0.2ms)[0m begin transaction
|
503
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
504
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
505
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
507
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
508
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
509
|
+
Parameters: {"id"=>"one"}
|
510
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
511
|
+
Redirected to http://test.host
|
512
|
+
Completed 302 Found in 19ms (ActiveRecord: 0.4ms)
|
513
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
514
|
+
[1m[35m (0.1ms)[0m begin transaction
|
515
|
+
[1m[36mDisclaimer::Document Load (0.7ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
516
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
517
|
+
Parameters: {"id"=>"one"}
|
518
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
519
|
+
Redirected to http://test.host/disclaimer/documents
|
520
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
521
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
523
|
+
[1m[36mDisclaimer::Document Load (0.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
524
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
525
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
526
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
|
527
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
528
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
529
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
530
|
+
[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
|
531
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1[0m
|
532
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
533
|
+
Redirected to http://test.host/disclaimer/documents/one
|
534
|
+
Completed 302 Found in 282ms (ActiveRecord: 1.4ms)
|
535
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
536
|
+
[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
|
537
|
+
[1m[36m (19.3ms)[0m [1mrollback transaction[0m
|
538
|
+
[1m[35m (0.1ms)[0m begin transaction
|
539
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
540
|
+
[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
|
541
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
542
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
543
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
544
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
545
|
+
[1m[36mDisclaimer::Segment Load (8.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
|
546
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
547
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
548
|
+
Redirected to http://test.host/disclaimer/documents/one
|
549
|
+
Completed 302 Found in 30ms (ActiveRecord: 9.0ms)
|
550
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
551
|
+
[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
|
552
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
|
553
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
554
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
555
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
556
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
557
|
+
[1m[36mDisclaimer::Segment Load (13.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
558
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
559
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
560
|
+
[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
|
561
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
562
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00]]
|
563
|
+
[1m[36mDisclaimer::SegmentHolder Load (6.3ms)[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
|
564
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00]]
|
565
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
566
|
+
Redirected to http://test.host/disclaimer/documents/one
|
567
|
+
Completed 302 Found in 97ms (ActiveRecord: 21.4ms)
|
568
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
569
|
+
[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
|
570
|
+
[1m[35mDisclaimer::Segment Load (8.6ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
571
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
572
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
573
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
574
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
575
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
576
|
+
[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
|
577
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1[0m
|
578
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
579
|
+
Redirected to http://test.host/disclaimer/documents/one
|
580
|
+
Completed 302 Found in 50ms (ActiveRecord: 1.1ms)
|
581
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
582
|
+
[1m[35mDisclaimer::Segment Load (12.9ms)[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
|
583
|
+
[1m[36m (5.3ms)[0m [1mrollback transaction[0m
|
584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
585
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
586
|
+
[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
|
587
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
588
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
589
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
590
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
591
|
+
[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
|
592
|
+
[1m[35mSQL (0.8ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
594
|
+
Redirected to http://test.host/disclaimer/documents/one
|
595
|
+
Completed 302 Found in 28ms (ActiveRecord: 1.6ms)
|
596
|
+
[1m[35mDisclaimer::Document Load (4.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
597
|
+
[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
|
598
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
|
599
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
600
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
601
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
602
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
603
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
604
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
605
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
606
|
+
[1m[35mDisclaimer::Segment Load (14.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
|
607
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
608
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00]]
|
609
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
610
|
+
[1m[35mSQL (13.6ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00]]
|
611
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
612
|
+
Redirected to http://test.host/disclaimer/documents/one
|
613
|
+
Completed 302 Found in 49ms (ActiveRecord: 29.5ms)
|
614
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
615
|
+
[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
|
616
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
617
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
618
|
+
[1m[35mDisclaimer::Document Load (0.6ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
619
|
+
[1m[36m (7.3ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
620
|
+
Processing by Disclaimer::DocumentsController#create as HTML
|
621
|
+
Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
|
622
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
623
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "disclaimer_documents" ("created_at", "footer", "header", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00], ["footer", nil], ["header", nil], ["name", "new_document"], ["title", "Create document"], ["updated_at", Fri, 07 Jun 2013 10:13:30 UTC +00:00]]
|
624
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
625
|
+
Redirected to http://test.host/disclaimer/documents/new_document
|
626
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
|
627
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
628
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1
|
629
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
630
|
+
[1m[35m (0.1ms)[0m begin transaction
|
631
|
+
[1m[36mDisclaimer::Document Load (0.6ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
632
|
+
Processing by Disclaimer::DocumentsController#delete as HTML
|
633
|
+
Parameters: {"id"=>"one"}
|
634
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
635
|
+
Completed 200 OK in 210ms (Views: 183.5ms | ActiveRecord: 0.2ms)
|
636
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
637
|
+
[1m[35m (0.1ms)[0m begin transaction
|
638
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
639
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
640
|
+
Processing by Disclaimer::DocumentsController#destroy as HTML
|
641
|
+
Parameters: {"id"=>"one"}
|
642
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
643
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
644
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ?[0m [["id", 1]]
|
645
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
646
|
+
Redirected to http://test.host/disclaimer/
|
647
|
+
Completed 302 Found in 20ms (ActiveRecord: 1.0ms)
|
648
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
649
|
+
[1m[35m (6.7ms)[0m rollback transaction
|
650
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
651
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
652
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
653
|
+
Parameters: {"id"=>"one"}
|
654
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
655
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
656
|
+
[1m[36mDisclaimer::Segment Exists (0.2ms)[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" = 1 LIMIT 1[0m
|
657
|
+
[1m[35mDisclaimer::Segment Exists (0.2ms)[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" = 2 LIMIT 1
|
658
|
+
Completed 200 OK in 88ms (Views: 85.9ms | ActiveRecord: 0.8ms)
|
659
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
660
|
+
[1m[35m (0.1ms)[0m begin transaction
|
661
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
662
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
663
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents"
|
664
|
+
[1m[36mDisclaimer::Segment Load (10.7ms)[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
|
665
|
+
Completed 200 OK in 34ms (Views: 21.7ms | ActiveRecord: 10.9ms)
|
666
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents"
|
667
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
668
|
+
[1m[35m (0.1ms)[0m begin transaction
|
669
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
670
|
+
Processing by Disclaimer::DocumentsController#new as HTML
|
671
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
672
|
+
[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" IS NULL AND "disclaimer_segments"."id" = 1 LIMIT 1[0m
|
673
|
+
[1m[35mDisclaimer::Segment Exists (0.2ms)[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" = 2 LIMIT 1
|
674
|
+
Completed 200 OK in 40ms (Views: 39.4ms | ActiveRecord: 0.6ms)
|
675
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
676
|
+
[1m[35m (0.1ms)[0m begin transaction
|
677
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
678
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
679
|
+
Parameters: {"id"=>"one"}
|
680
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
681
|
+
[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
|
682
|
+
Completed 200 OK in 45ms (Views: 34.1ms | ActiveRecord: 0.5ms)
|
683
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
684
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
685
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
686
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
687
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
688
|
+
Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
|
689
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
690
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
691
|
+
[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
|
692
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
693
|
+
[1m[35m (6.2ms)[0m UPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-06-07 10:13:31.316036' WHERE "disclaimer_documents"."id" = 1
|
694
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
695
|
+
Redirected to http://test.host/disclaimer/documents/one
|
696
|
+
Completed 302 Found in 32ms (ActiveRecord: 7.4ms)
|
697
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
698
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
699
|
+
[1m[35m (1.8ms)[0m rollback transaction
|
700
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
701
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
702
|
+
[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
|
703
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
704
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
705
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
706
|
+
[1m[36m (5.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
707
|
+
[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
|
708
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
709
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
710
|
+
Redirected to http://test.host/disclaimer/documents/one
|
711
|
+
Completed 302 Found in 38ms (ActiveRecord: 6.8ms)
|
712
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
713
|
+
[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
|
714
|
+
[1m[36m (6.3ms)[0m [1mrollback transaction[0m
|
715
|
+
[1m[35m (0.1ms)[0m begin transaction
|
716
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
717
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
718
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
719
|
+
[1m[35mDisclaimer::Segment Load (1.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
|
720
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
721
|
+
[1m[35mDisclaimer::SegmentHolder Load (2.6ms)[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
|
722
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:13:31 UTC +00:00], ["document_id", 1], ["position", 3], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:13:31 UTC +00:00]]
|
723
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
724
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
726
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
727
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
728
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
729
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
730
|
+
[1m[36m (3.9ms)[0m [1mUPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-06-07 10:13:31.461445' WHERE "disclaimer_segments"."id" = 1[0m
|
731
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
732
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
733
|
+
[1m[35m (0.2ms)[0m begin transaction
|
734
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
735
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
736
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
737
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1
|
738
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position LIMIT 1[0m
|
739
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
740
|
+
[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
|
741
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
743
|
+
[1m[35mDisclaimer::Document Load (0.6ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
744
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
745
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
746
|
+
[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
|
747
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
748
|
+
[1m[36mSQL (11.0ms)[0m [1mUPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)[0m
|
749
|
+
[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
|
750
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-06-07 10:13:31.546308' WHERE "disclaimer_segment_holders"."id" = 980190962[0m
|
751
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
|
752
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
753
|
+
[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
|
754
|
+
[1m[36m (2.2ms)[0m [1mrollback transaction[0m
|
755
|
+
[1m[35m (0.2ms)[0m begin transaction
|
756
|
+
[1m[36mDisclaimer::Document Load (0.6ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
757
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
758
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
759
|
+
[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" IS NULL ORDER BY position LIMIT 1
|
760
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
762
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
763
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
764
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
765
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1
|
766
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
767
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
|
768
|
+
[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
|
769
|
+
[1m[35m (0.6ms)[0m UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-06-07 10:13:31.610871' WHERE "disclaimer_segment_holders"."id" = 980190962
|
770
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)[0m
|
771
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
772
|
+
[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
|
773
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
775
|
+
[1m[35mDisclaimer::Document Load (3.5ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
776
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
777
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
778
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
779
|
+
[1m[35m (0.1ms)[0m begin transaction
|
780
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
781
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
782
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
783
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
784
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
785
|
+
[1m[35mDisclaimer::Segment Load (1.0ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
786
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
787
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
788
|
+
Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
|
789
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
790
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", nil], ["created_at", Fri, 07 Jun 2013 10:13:31 UTC +00:00], ["name", "new_segment"], ["title", "Create segment"], ["updated_at", Fri, 07 Jun 2013 10:13:31 UTC +00:00]]
|
791
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
792
|
+
Redirected to http://test.host/disclaimer/segments/new_segment
|
793
|
+
Completed 302 Found in 18ms (ActiveRecord: 1.1ms)
|
794
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
795
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
796
|
+
[1m[36m (3.1ms)[0m [1mrollback transaction[0m
|
797
|
+
[1m[35m (0.1ms)[0m begin transaction
|
798
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
799
|
+
Processing by Disclaimer::SegmentsController#delete as HTML
|
800
|
+
Parameters: {"id"=>"one"}
|
801
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
802
|
+
Completed 200 OK in 40ms (Views: 37.6ms | ActiveRecord: 0.2ms)
|
803
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
804
|
+
[1m[35m (0.1ms)[0m begin transaction
|
805
|
+
[1m[36mDisclaimer::Segment Load (0.7ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
806
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
807
|
+
Processing by Disclaimer::SegmentsController#destroy as HTML
|
808
|
+
Parameters: {"id"=>"one"}
|
809
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
810
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
811
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ?[0m [["id", 1]]
|
812
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
813
|
+
Redirected to http://test.host/disclaimer/segments
|
814
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
|
815
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
816
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
817
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
818
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
819
|
+
Processing by Disclaimer::SegmentsController#edit as HTML
|
820
|
+
Parameters: {"id"=>"one"}
|
821
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
822
|
+
Completed 200 OK in 31ms (Views: 29.6ms | ActiveRecord: 0.2ms)
|
823
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
824
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
825
|
+
[1m[35mDisclaimer::Segment Load (0.6ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
826
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
827
|
+
[1m[36mDisclaimer::Segment Load (6.6ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
828
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[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" = 1 ORDER BY position
|
829
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[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" = 2 ORDER BY position[0m
|
830
|
+
Completed 200 OK in 68ms (Views: 58.9ms | ActiveRecord: 7.4ms)
|
831
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
832
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
833
|
+
[1m[35m (0.6ms)[0m begin transaction
|
834
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
835
|
+
Processing by Disclaimer::SegmentsController#new as HTML
|
836
|
+
Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.0ms)
|
837
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
838
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
839
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
840
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
841
|
+
Parameters: {"id"=>"one"}
|
842
|
+
[1m[36mDisclaimer::Segment Load (0.7ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
843
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (0.7ms)
|
844
|
+
Completed 200 OK in 149ms (Views: 146.1ms | ActiveRecord: 0.7ms)
|
845
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
846
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
847
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
848
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
849
|
+
Processing by Disclaimer::SegmentsController#update as HTML
|
850
|
+
Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
|
851
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
852
|
+
[1m[36m (2.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
853
|
+
[1m[35m (0.5ms)[0m UPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-06-07 10:13:32.225141' WHERE "disclaimer_segments"."id" = 1
|
854
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
855
|
+
Redirected to http://test.host/disclaimer/segments/one
|
856
|
+
Completed 302 Found in 8ms (ActiveRecord: 2.9ms)
|
857
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
858
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
859
|
+
[1m[35m (11.4ms)[0m rollback transaction
|
860
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
861
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
862
|
+
[1m[36m (8.5ms)[0m [1mbegin transaction[0m
|
863
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
864
|
+
Processing by SampleController#bypass_disclaimer as HTML
|
865
|
+
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.0ms)
|
866
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
867
|
+
[1m[35m (0.1ms)[0m begin transaction
|
868
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
869
|
+
[1m[35m (4.3ms)[0m SAVEPOINT active_record_1
|
870
|
+
[1m[36m (4.3ms)[0m [1mUPDATE "disclaimer_documents" SET "name" = 'something_else', "updated_at" = '2013-06-07 10:13:32.316478' WHERE "disclaimer_documents"."id" = 1[0m
|
871
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
872
|
+
Processing by SampleController#index as HTML
|
873
|
+
[1m[36mDisclaimer::Document Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
874
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'one'
|
875
|
+
Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.1ms)
|
876
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
877
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
878
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
879
|
+
[1m[36m (6.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
880
|
+
[1m[35m (0.9ms)[0m UPDATE "disclaimer_documents" SET "name" = 'something_else', "updated_at" = '2013-06-07 10:13:32.365058' WHERE "disclaimer_documents"."id" = 1
|
881
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
882
|
+
Processing by SampleController#index as HTML
|
883
|
+
[1m[35mDisclaimer::Document Exists (0.1ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
884
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'one'
|
885
|
+
Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)
|
886
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
887
|
+
[1m[35m (0.4ms)[0m UPDATE "disclaimer_documents" SET "name" = 'one', "updated_at" = '2013-06-07 10:13:32.390650' WHERE "disclaimer_documents"."id" = 1
|
888
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
889
|
+
Processing by SampleController#index as HTML
|
890
|
+
[1m[35mDisclaimer::Document Exists (9.9ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
891
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
892
|
+
Redirected to http://test.host/disclaimer/documents/one
|
893
|
+
Filter chain halted as #<Proc:0x9fc0784@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:7> rendered or redirected
|
894
|
+
Completed 302 Found in 25ms (Views: 8.4ms | ActiveRecord: 10.5ms)
|
895
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
896
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
897
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
898
|
+
Processing by SampleController#index as HTML
|
899
|
+
[1m[36mDisclaimer::Document Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
900
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
901
|
+
Redirected to http://test.host/disclaimer/documents/one
|
902
|
+
Filter chain halted as #<Proc:0x9fc0784@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:7> rendered or redirected
|
903
|
+
Completed 302 Found in 12ms (ActiveRecord: 1.4ms)
|
904
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
905
|
+
[1m[35m (0.1ms)[0m begin transaction
|
906
|
+
[1m[36mDisclaimer::Document Load (4.7ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
907
|
+
Processing by SampleController#index as HTML
|
908
|
+
[1m[35mDisclaimer::Document Exists (0.5ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
909
|
+
Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.5ms)
|
910
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
911
|
+
Connecting to database specified by database.yml
|
912
|
+
[1m[36mDisclaimer::Document Load (0.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
913
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
914
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
915
|
+
[1m[35mFixture Delete (3.6ms)[0m DELETE FROM "disclaimer_documents"
|
916
|
+
[1m[36mFixture Insert (2.8ms)[0m [1mINSERT 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-06-07 10:14:19', '2013-06-07 10:14:19')[0m
|
917
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "disclaimer_segment_holders"
|
918
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-06-07 10:14:19', '2013-06-07 10:14:19', 980190962)[0m
|
919
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "disclaimer_segment_holders" ("document_id", "segment_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-06-07 10:14:19', '2013-06-07 10:14:19', 298486374)
|
920
|
+
[1m[36mFixture Delete (3.7ms)[0m [1mDELETE FROM "disclaimer_segments"[0m
|
921
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (1, 'one', 'MyString', 'MyText', '2013-06-07 10:14:19', '2013-06-07 10:14:19')
|
922
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "disclaimer_segments" ("id", "name", "title", "body", "created_at", "updated_at") VALUES (2, 'two', 'MyString', 'MyText', '2013-06-07 10:14:19', '2013-06-07 10:14:19')[0m
|
923
|
+
[1m[35m (172.7ms)[0m commit transaction
|
924
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
925
|
+
[1m[35mDisclaimer::Document Load (0.6ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
926
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
927
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
928
|
+
[1m[36m (2.3ms)[0m [1mUPDATE "disclaimer_documents" SET "name" = 'this_is_a_name', "updated_at" = '2013-06-07 10:14:19.459015' WHERE "disclaimer_documents"."id" = 1[0m
|
929
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
930
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
931
|
+
[1m[35m (0.1ms)[0m begin transaction
|
932
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
933
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
934
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.4ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position LIMIT 1[0m
|
935
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.9ms)[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
|
936
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
938
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
939
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
940
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
941
|
+
[1m[35m (0.1ms)[0m begin transaction
|
942
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
943
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
944
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
945
|
+
[1m[35m (0.1ms)[0m begin transaction
|
946
|
+
[1m[36mDisclaimer::Document Load (0.7ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
947
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
948
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
949
|
+
[1m[35m (0.1ms)[0m begin transaction
|
950
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
951
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
952
|
+
Parameters: {"id"=>"one"}
|
953
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
954
|
+
Redirected to http://test.host
|
955
|
+
Completed 302 Found in 13ms (ActiveRecord: 0.2ms)
|
956
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
957
|
+
[1m[35m (0.3ms)[0m begin transaction
|
958
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
959
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
960
|
+
Parameters: {"id"=>"one"}
|
961
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
962
|
+
Redirected to http://test.host/disclaimer/documents
|
963
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
|
964
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
965
|
+
[1m[35m (0.1ms)[0m begin transaction
|
966
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
967
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
968
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
969
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>{2=>"yes"}}}
|
970
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
971
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
972
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
973
|
+
[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
|
974
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1[0m
|
975
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
976
|
+
Redirected to http://test.host/disclaimer/documents/one
|
977
|
+
Completed 302 Found in 194ms (ActiveRecord: 1.8ms)
|
978
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
979
|
+
[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
|
980
|
+
[1m[36m (13.0ms)[0m [1mrollback transaction[0m
|
981
|
+
[1m[35m (0.1ms)[0m begin transaction
|
982
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
983
|
+
[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
|
984
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
985
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
986
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
987
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
988
|
+
[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
|
989
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
990
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
991
|
+
Redirected to http://test.host/disclaimer/documents/one
|
992
|
+
Completed 302 Found in 35ms (ActiveRecord: 1.3ms)
|
993
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
994
|
+
[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
|
995
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
|
996
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
997
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
998
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
999
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1000
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1001
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
1002
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1003
|
+
[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
|
1004
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
1005
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00]]
|
1006
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
1007
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00]]
|
1008
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1009
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1010
|
+
Completed 302 Found in 118ms (ActiveRecord: 2.1ms)
|
1011
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1012
|
+
[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
|
1013
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
1014
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
1015
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
1016
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1017
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
1018
|
+
[1m[36m (12.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1019
|
+
[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
|
1020
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" = 1[0m
|
1021
|
+
[1m[35m (12.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1022
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1023
|
+
Completed 302 Found in 31ms (ActiveRecord: 25.3ms)
|
1024
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1025
|
+
[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
|
1026
|
+
[1m[36m (13.3ms)[0m [1mrollback transaction[0m
|
1027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1028
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1029
|
+
[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
|
1030
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
1031
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
1032
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1033
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1034
|
+
[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
|
1035
|
+
[1m[35mSQL (13.2ms)[0m DELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)
|
1036
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1037
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1038
|
+
Completed 302 Found in 24ms (ActiveRecord: 13.9ms)
|
1039
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1040
|
+
[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
|
1041
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" LIMIT 1
|
1042
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1[0m
|
1043
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
1044
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
1045
|
+
[1m[35mDisclaimer::Document Load (12.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1046
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1047
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
1048
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1049
|
+
[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
|
1050
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
1051
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00]]
|
1052
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
1053
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00]]
|
1054
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1055
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1056
|
+
Completed 302 Found in 61ms (ActiveRecord: 14.1ms)
|
1057
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1058
|
+
[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
|
1059
|
+
[1m[35m (3.2ms)[0m rollback transaction
|
1060
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1061
|
+
[1m[35mDisclaimer::Document Load (1.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1062
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
1063
|
+
Processing by Disclaimer::DocumentsController#create as HTML
|
1064
|
+
Parameters: {"document"=>{"title"=>"Create document", "name"=>"new document"}}
|
1065
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1066
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "disclaimer_documents" ("created_at", "footer", "header", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00], ["footer", nil], ["header", nil], ["name", "new_document"], ["title", "Create document"], ["updated_at", Fri, 07 Jun 2013 10:14:20 UTC +00:00]]
|
1067
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1068
|
+
Redirected to http://test.host/disclaimer/documents/new_document
|
1069
|
+
Completed 302 Found in 10ms (ActiveRecord: 4.6ms)
|
1070
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
1071
|
+
[1m[35mDisclaimer::Document Load (0.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" ORDER BY "disclaimer_documents"."id" DESC LIMIT 1
|
1072
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
1073
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1074
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1075
|
+
Processing by Disclaimer::DocumentsController#delete as HTML
|
1076
|
+
Parameters: {"id"=>"one"}
|
1077
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1078
|
+
Completed 200 OK in 155ms (Views: 153.1ms | ActiveRecord: 0.2ms)
|
1079
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1080
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1081
|
+
[1m[36mDisclaimer::Document Load (0.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1082
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
1083
|
+
Processing by Disclaimer::DocumentsController#destroy as HTML
|
1084
|
+
Parameters: {"id"=>"one"}
|
1085
|
+
[1m[36mDisclaimer::Document Load (4.6ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1086
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1087
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ?[0m [["id", 1]]
|
1088
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1089
|
+
Redirected to http://test.host/disclaimer/
|
1090
|
+
Completed 302 Found in 21ms (ActiveRecord: 5.2ms)
|
1091
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
1092
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1093
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1094
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1095
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
1096
|
+
Parameters: {"id"=>"one"}
|
1097
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1098
|
+
[1m[35mDisclaimer::Segment Load (10.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
1099
|
+
[1m[36mDisclaimer::Segment Exists (0.2ms)[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" = 1 LIMIT 1[0m
|
1100
|
+
[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" = 2 LIMIT 1
|
1101
|
+
Completed 200 OK in 73ms (Views: 48.1ms | ActiveRecord: 11.0ms)
|
1102
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1103
|
+
[1m[35m (0.3ms)[0m begin transaction
|
1104
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1105
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
1106
|
+
[1m[35mDisclaimer::Document Load (16.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents"
|
1107
|
+
[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
|
1108
|
+
Completed 200 OK in 38ms (Views: 19.8ms | ActiveRecord: 16.5ms)
|
1109
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents"
|
1110
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1111
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1112
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1113
|
+
Processing by Disclaimer::DocumentsController#new as HTML
|
1114
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
1115
|
+
[1m[36mDisclaimer::Segment Exists (0.4ms)[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" = 1 LIMIT 1[0m
|
1116
|
+
[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" IS NULL AND "disclaimer_segments"."id" = 2 LIMIT 1
|
1117
|
+
Completed 200 OK in 38ms (Views: 36.7ms | ActiveRecord: 0.9ms)
|
1118
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1119
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1120
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1121
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
1122
|
+
Parameters: {"id"=>"one"}
|
1123
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1124
|
+
[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
|
1125
|
+
Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.4ms)
|
1126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1128
|
+
[1m[35mDisclaimer::Document Load (5.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1129
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
1130
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
1131
|
+
Parameters: {"id"=>"one", "document"=>{"title"=>"Document update"}}
|
1132
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1133
|
+
[1m[36m (1.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1134
|
+
[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
|
1135
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
1136
|
+
[1m[35m (0.3ms)[0m UPDATE "disclaimer_documents" SET "title" = 'Document update', "updated_at" = '2013-06-07 10:14:20.924460' WHERE "disclaimer_documents"."id" = 1
|
1137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1138
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1139
|
+
Completed 302 Found in 23ms (ActiveRecord: 2.4ms)
|
1140
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
1141
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1142
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1143
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1144
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1145
|
+
[1m[36mDisclaimer::Segment Load (0.5ms)[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
|
1146
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
1147
|
+
Parameters: {"id"=>"one", "document"=>{"segments"=>nil}}
|
1148
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1149
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1150
|
+
[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
|
1151
|
+
[1m[36mSQL (4.7ms)[0m [1mDELETE FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segment_holders"."segment_id" IN (1, 2)[0m
|
1152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1153
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1154
|
+
Completed 302 Found in 17ms (ActiveRecord: 5.2ms)
|
1155
|
+
[1m[36mDisclaimer::Document Load (0.1ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1156
|
+
[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
|
1157
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1158
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1159
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1160
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1161
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
1162
|
+
[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
|
1163
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1164
|
+
[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
|
1165
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 07 Jun 2013 10:14:21 UTC +00:00], ["document_id", 1], ["position", 3], ["segment_id", 1], ["updated_at", Fri, 07 Jun 2013 10:14:21 UTC +00:00]]
|
1166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1167
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1169
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1170
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1171
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
1172
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1173
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "disclaimer_segments" SET "name" = 'this_is_a_name', "updated_at" = '2013-06-07 10:14:21.059424' WHERE "disclaimer_segments"."id" = 1[0m
|
1174
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1175
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1177
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1178
|
+
[1m[35mDisclaimer::Segment Load (3.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1179
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
1180
|
+
[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
|
1181
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.1ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."segment_id" = 2 ORDER BY position LIMIT 1[0m
|
1182
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
1183
|
+
[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
|
1184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1185
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1186
|
+
[1m[35mDisclaimer::Document Load (6.7ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1187
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1188
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
1189
|
+
[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
|
1190
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1191
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)[0m
|
1192
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.4ms)[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
|
1193
|
+
[1m[36m (7.3ms)[0m [1mUPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-06-07 10:14:21.123322' WHERE "disclaimer_segment_holders"."id" = 980190962[0m
|
1194
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)
|
1195
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1196
|
+
[1m[35mDisclaimer::Segment Load (11.0ms)[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
|
1197
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1198
|
+
[1m[35m (0.3ms)[0m begin transaction
|
1199
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1200
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1201
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
1202
|
+
[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" IS NULL ORDER BY position LIMIT 1
|
1203
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1205
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1206
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1207
|
+
[1m[36mDisclaimer::Segment Load (0.7ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
1208
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.2ms)[0m SELECT DISTINCT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position LIMIT 1
|
1209
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1210
|
+
[1m[35mSQL (2.8ms)[0m UPDATE "disclaimer_segment_holders" SET position = (position - 1) WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position > 1)
|
1211
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[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
|
1212
|
+
[1m[35m (0.5ms)[0m UPDATE "disclaimer_segment_holders" SET "position" = 2, "updated_at" = '2013-06-07 10:14:21.175636' WHERE "disclaimer_segment_holders"."id" = 980190962
|
1213
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1 AND position = 2)[0m
|
1214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1215
|
+
[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
|
1216
|
+
[1m[35m (2.2ms)[0m rollback transaction
|
1217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1218
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1 [["id", 1]]
|
1219
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1220
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 2]]
|
1221
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1223
|
+
[1m[36mDisclaimer::Document Load (0.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
1224
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1225
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 2]]
|
1226
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1228
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1229
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
1230
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
1231
|
+
Parameters: {"segment"=>{"title"=>"Create segment", "name"=>"new segment"}}
|
1232
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1233
|
+
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", nil], ["created_at", Fri, 07 Jun 2013 10:14:21 UTC +00:00], ["name", "new_segment"], ["title", "Create segment"], ["updated_at", Fri, 07 Jun 2013 10:14:21 UTC +00:00]]
|
1234
|
+
[1m[35m (1.8ms)[0m RELEASE SAVEPOINT active_record_1
|
1235
|
+
Redirected to http://test.host/disclaimer/segments/new_segment
|
1236
|
+
Completed 302 Found in 23ms (ActiveRecord: 7.5ms)
|
1237
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
1238
|
+
[1m[35mDisclaimer::Segment Load (0.1ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" ORDER BY "disclaimer_segments"."id" DESC LIMIT 1
|
1239
|
+
[1m[36m (3.1ms)[0m [1mrollback transaction[0m
|
1240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1241
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1242
|
+
Processing by Disclaimer::SegmentsController#delete as HTML
|
1243
|
+
Parameters: {"id"=>"one"}
|
1244
|
+
[1m[35mDisclaimer::Segment Load (11.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
1245
|
+
Completed 200 OK in 37ms (Views: 24.0ms | ActiveRecord: 11.3ms)
|
1246
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1247
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1248
|
+
[1m[36mDisclaimer::Segment Load (3.5ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1249
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
1250
|
+
Processing by Disclaimer::SegmentsController#destroy as HTML
|
1251
|
+
Parameters: {"id"=>"one"}
|
1252
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
1253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1254
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ?[0m [["id", 1]]
|
1255
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1256
|
+
Redirected to http://test.host/disclaimer/segments
|
1257
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
1258
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
1259
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1260
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1261
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1262
|
+
Processing by Disclaimer::SegmentsController#edit as HTML
|
1263
|
+
Parameters: {"id"=>"one"}
|
1264
|
+
[1m[36mDisclaimer::Segment Load (0.4ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
1265
|
+
Completed 200 OK in 40ms (Views: 27.9ms | ActiveRecord: 0.4ms)
|
1266
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1267
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1268
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1269
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
1270
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
1271
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[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" = 1 ORDER BY position
|
1272
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[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" = 2 ORDER BY position[0m
|
1273
|
+
Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 1.0ms)
|
1274
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
1275
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1276
|
+
[1m[35m (0.3ms)[0m begin transaction
|
1277
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1278
|
+
Processing by Disclaimer::SegmentsController#new as HTML
|
1279
|
+
Completed 200 OK in 22ms (Views: 14.5ms | ActiveRecord: 0.0ms)
|
1280
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1281
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1282
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1283
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
1284
|
+
Parameters: {"id"=>"one"}
|
1285
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
1286
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (0.7ms)
|
1287
|
+
Completed 200 OK in 127ms (Views: 117.1ms | ActiveRecord: 0.2ms)
|
1288
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1290
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", 1]]
|
1291
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_segments" [0m
|
1292
|
+
Processing by Disclaimer::SegmentsController#update as HTML
|
1293
|
+
Parameters: {"id"=>"one", "segment"=>{"title"=>"Segment update"}}
|
1294
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1
|
1295
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1296
|
+
[1m[35m (0.5ms)[0m UPDATE "disclaimer_segments" SET "title" = 'Segment update', "updated_at" = '2013-06-07 10:14:21.722225' WHERE "disclaimer_segments"."id" = 1
|
1297
|
+
[1m[36m (3.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1298
|
+
Redirected to http://test.host/disclaimer/segments/one
|
1299
|
+
Completed 302 Found in 9ms (ActiveRecord: 4.1ms)
|
1300
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "disclaimer_segments"
|
1301
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", 1]]
|
1302
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1303
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1304
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1305
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1306
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
1307
|
+
Processing by SampleController#bypass_disclaimer as HTML
|
1308
|
+
Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.0ms)
|
1309
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1311
|
+
[1m[36mDisclaimer::Document Load (3.6ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
1312
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1313
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "disclaimer_documents" SET "name" = 'something_else', "updated_at" = '2013-06-07 10:14:21.817487' WHERE "disclaimer_documents"."id" = 1[0m
|
1314
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1315
|
+
Processing by SampleController#index as HTML
|
1316
|
+
[1m[36mDisclaimer::Document Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1317
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'one'
|
1318
|
+
Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 0.2ms)
|
1319
|
+
[1m[35m (8.6ms)[0m rollback transaction
|
1320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1321
|
+
[1m[35mDisclaimer::Document Load (0.5ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
1322
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1323
|
+
[1m[35m (0.5ms)[0m UPDATE "disclaimer_documents" SET "name" = 'something_else', "updated_at" = '2013-06-07 10:14:21.855956' WHERE "disclaimer_documents"."id" = 1
|
1324
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1325
|
+
Processing by SampleController#index as HTML
|
1326
|
+
[1m[35mDisclaimer::Document Exists (0.1ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1327
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'one'
|
1328
|
+
Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms)
|
1329
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1330
|
+
[1m[35m (0.4ms)[0m UPDATE "disclaimer_documents" SET "name" = 'one', "updated_at" = '2013-06-07 10:14:21.890344' WHERE "disclaimer_documents"."id" = 1
|
1331
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1332
|
+
Processing by SampleController#index as HTML
|
1333
|
+
[1m[35mDisclaimer::Document Exists (0.1ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1334
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1335
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1336
|
+
Filter chain halted as #<Proc:0x8fe8b90@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:7> rendered or redirected
|
1337
|
+
Completed 302 Found in 15ms (Views: 8.1ms | ActiveRecord: 0.4ms)
|
1338
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1340
|
+
[1m[35mDisclaimer::Document Load (0.4ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
1341
|
+
Processing by SampleController#index as HTML
|
1342
|
+
[1m[36mDisclaimer::Document Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1[0m
|
1343
|
+
[1m[35mDisclaimer::Document Load (9.1ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1344
|
+
Redirected to http://test.host/disclaimer/documents/one
|
1345
|
+
Filter chain halted as #<Proc:0x8fe8b90@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:7> rendered or redirected
|
1346
|
+
Completed 302 Found in 14ms (ActiveRecord: 9.3ms)
|
1347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1349
|
+
[1m[36mDisclaimer::Document Load (0.4ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
1350
|
+
Processing by SampleController#index as HTML
|
1351
|
+
[1m[35mDisclaimer::Document Exists (0.1ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'one' LIMIT 1
|
1352
|
+
Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
1353
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|